Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display Java code in an HTML page

 
Sourabh Bawage
Ranch Hand
Posts: 33
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display Java code on my website which has Java Code...basically I need a Java code highlighter like this...

I know this is not related to JSP.....I did some googling...couldn't find much....
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is the one we're using: http://alexgorbatchev.com/SyntaxHighlighter/. It also seems to have a Java port, should that be of interest.
 
There's a way to do it better - find it. -Edison. A better tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!