File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes SyntaxHighlighter for Java Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "SyntaxHighlighter for Java Code" Watch "SyntaxHighlighter for Java Code" New topic
Author

SyntaxHighlighter for Java Code

Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
It would be really nice if Syntax Highlighter can be incorporated into the Javaranch forums code displays. That would greatly augment the reading experience.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31075
    
232

Santhosh,
Agreed. That kind of thing seems like a great wish list item for us to include at some point in the future.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Wow, thats a good-to-have feature.

But even without any syntax highlighter, it looks fine for me, as the load on server could increase gradually if we keep adding features of this sort.

Moreover, we can very well survive without that feature in place.

Just expressed my views here Santhosh


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
I understand the server load but this synax highlighter is completely client side, implemented in css and js. That developer has done really a great job developing that library.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Yes, definitely it should be appreciated
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Yes...this should be a cool feature!


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42934
    
  68
Yes, syntax highlighting is nice. We added it to the FAQ wiki, which makes for nice looking source code in the CodeBarn (which, by the way, is open for contributions, hint hint). That's done on the server with the JHighlight library.
[ July 11, 2008: Message edited by: Ulf Dittmer ]
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
That is good idea, may be this can be tired out in CodeBarn to start with and if all goes well, can be rolled out to other places.

Integrating is pretty easy. Check out the sample page with two code blocks I have created here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SyntaxHighlighter for Java Code