Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SyntaxHighlighter for Java Code

 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Santhosh,
Agreed. That kind of thing seems like a great wish list item for us to include at some point in the future.
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, definitely it should be appreciated
 
Joe Harry
Ranch Hand
Posts: 10105
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes...this should be a cool feature!
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic