Code Htmler

Code Htmler is a simple program that will translate plain text code into a colorized html version of the code. Currently there exist language definitions for C#, JScript, VB.Net and XML.

It uses regular expressions to match language structures, such as keywords and literals (strings, integer, real, etc.). The language definitions are stored in xml files and so languages can be customized or new languages can be created rather easily.

I wrote Code Htmler a long time ago with the some help from Shawn A Van Ness. I just recently recoded most of it so that I could use it for the syntax highlighting within PostXING. With the next release (coming soon I believe have to ask Chris for exact time) everyone will be able to use it to do syntax highlighting for their blog. I have been using it for the last few entries which have code samples, if you want a quick sample.

I have uploaded the source code up to my site http://puzzleware.net/codehtmler/ and up to Project Distributor http://projectdistributor.net/Projects/Project.aspx?projectId=37. At http://puzzleware.net/codehtmler/ you can actually play around with it and test it out on the web. So if you are interested feel free to have a look and let me know what you think.

Published Thursday, December 02, 2004 11:13 PM by puzzlehacker

Comments

# re: Code Htmler

For a second there I thought that said "Code Hitler".

And I was strangely intrigued... ;)

Friday, December 03, 2004 12:03 AM by Jeff Atwood

# Wes, you Rock.

Friday, December 03, 2004 5:59 PM by TrackBack

# Wes, you Rock.

Friday, December 03, 2004 5:59 PM by TrackBack

# re: Code Htmler

Jeff: That's funny :) What's even funnier is that I was showing my wife something and she saw that and said the same thing...

Saturday, December 04, 2004 7:02 PM by Wes Haggard

# re: .NET Blogging API - Injection 1.0

Tuesday, December 07, 2004 9:52 AM by TrackBack

# re: Code Htmler

That's really handy to have, thanks Wes

Thursday, December 09, 2004 8:41 AM by Paul Nicholls

Leave a Comment

(required) 
(required) 
(optional)
(required)