Need to colorize my code!
April 18, 2006 9:46 AM   Subscribe

Looking for a decent (free) C# + JavaScript source code colorizer.

I wouldn't think it would be hard to find, but I'm having trouble. I need something easy and quick that generates fairly clean, colorized HTML from C# and JavaScript code snippets. Oh, and it has to run on XP. And preferrably be a little configurable?

I found one that was pretty good but it always generated a grey background and a little "generated by" message at the bottom.

Thanks in advance!
posted by blahtsk to Computers & Internet (10 answers total)
 
What was the app you found and what are you trying to present the code as? Is this for printing or something else?
posted by yerfatma at 10:05 AM on April 18, 2006


I would like to put code snippets on a web page and have them be color-coded the same way they are in Visual Studio.

I tried CodeColorizer, but, as I wrote, it always puts code in a grey box and attaches a little "generated by" message.
posted by blahtsk at 10:13 AM on April 18, 2006


I've had good luck with jEdit's Code2HTML plugin.
posted by mmascolino at 10:19 AM on April 18, 2006


I've heard many people say good things about the CopySourceAsHtml Visual Studio Add-In. This, of course, assumes you are using Visual Studio.
posted by cmicali at 10:39 AM on April 18, 2006


TextPad Pro is my windows text/code/script editor of choice and has been for a long time now. http://www.textpad.com

They have syntax definitions for an amazing number of programming and scripting languages: http://www.textpad.com/add-ons/syna2g.html

I've never used it to save my color-coded code as an HTML file but according to this forum post it is indeed possible: http://www.textpad.info/forum/viewtopic.php?t=4581

I'd try it out myself before posting but I am surrounded by Macs at work... no windows in here!
posted by J-Garr at 11:06 AM on April 18, 2006


gvim saves in color HTML from its color schemes.
posted by devilsbrigade at 11:10 AM on April 18, 2006


Highlight does over 50 languages and writes to XHTML and other formats.
posted by wackybrit at 11:51 AM on April 18, 2006


Check out SciTE editor: http://www.scintilla.org
Supports many languages, Syntax coloring, and export as HTML, RTF, PDF, LaTeX, and XML
posted by StarForce5 at 2:32 PM on April 18, 2006


Thanks everyone. TextPad Pro did the trick.
posted by blahtsk at 10:07 PM on April 18, 2006


I'll throw in a link to conText, a pretty good editor with full customization of how 'code' looks with the ability to export to html.
posted by killThisKid at 8:15 AM on April 19, 2006


« Older Looking for a specific travel blog   |   WinXP install on an iMac: OEM vs Full Retail Boxed... Newer »
This thread is closed to new comments.