This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

add java programming syntax in html

 
Ramesh Sengani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working in tutorial site where i want to show Java examples in html page.It will show Java code in html like string in blue,variable in green etc. I tried by watching other sites, but its really hard to implement that manually.

Is that any pre-build css available to simply my work. where i can write code in java and they convert that in html sytax?.
 
Tim Moores
Bartender
Posts: 2849
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Several such JavaScript libraries are available; check out this one: http://alexgorbatchev.com/SyntaxHighlighter/
 
Ramesh Sengani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dude...I got what i need ....................Thank you very mach............and thansk to Coderanch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic