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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26155
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: 3327
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: 3327
Yes, definitely it should be appreciated
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
Yes...this should be a cool feature!
SCJP 1.4, SCWCD 1.4 - Hints for you , SCBCD Hints - Demnachst , SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
posted Jul 11, 2008 08:44:00
0
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 ]
Android apps – ImageJ plugins – Java web charts
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 .
subject: SyntaxHighlighter for Java Code