Over the past few months I’ve been slowly building the web infrastrusture I want for blogging. One of the necessary pieces for any developer is a source code to HTML syntax highlighter. Of course, I could use one of the many already available online but that’s no fun when it’s easy enough to build your own using the Actipro‘s freeware CodeHighlighter.
To that end, here is my online source code highlighter. Feel free to use it for your own highlighting needs. None of the code processed is archived, stored or otherwise consumed by anything other than the aforementioned formatting control.
Hi Steve,
Very nice highlighter!
Have you thought about wrapping it up as a Web Service?
P.
Steve,
One word – EXCELLENT!
This easily made it to my bookmarks…
Also, you can do this inside the BDS IDE if you use the community welcome page.
Hi Pawel,
At this point, no. I’m rather swamped with work right now so that will have to wait.
One additional thing to mention is that you’ll need to get the outlining images (if used) and also adjust the paths if they’re not that same as yours.
Brad,
Thanks for pointing that out. I’ve added a link to a zip file of the images and mentioned the path issue in the generated markup.
"//" comments are not handled correctly, however "{}" and "(**)" are.
Steve, the Delphi Corner forum has had one for years and I just recently sent Chris Bray an updated version that uses TSynEdit’s
highlighter module and your Delphi installations color scheme.
Send me an email and I’ll forward a copy to you.
Hi Eddie,
Thanks for the info. I too have used TSynEdit for a tray utility I use for syntax highlighting. The online version is nice because I can use it without any client software other than the browser.