This post originated from an RSS feed registered with Java Buzz
by Sam Dalton.
Original Post: Pretty Priniting Java/C# Code on a Webpage
Feed Title: import java.*;
Feed URL: http://www.samjdalton.com/pebble/rss.xml
Feed Description: Random, Infrequent Bloggings of a Techie
Wrote a JSP Custom Tag recently to pretty print Java or C# code on a webpage. The tag highlights comments, keywords and quoted strings, so that it looks just like Eclipse/IntelliJ. The code can be found here, and here is an example. Feel free to take the code, and do what you like with it.