Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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: 42967
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic