Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?

Archives
Steve Trefethen Steve's RSS Feed Subscribe or via email
What's this?
Contact me Send mail to the author(s)
About Me
View my LinkedIn profile

Add to Google
Subscribe with Bloglines
MCP Microsoft Certified Professional

Falafel Software
Online or OnSite TestComplete Training
Blogroll
Recent Comments
My Online Tools
Stats
Total Posts: 472
This Year: 77
This Month: 2
This Week: 1
Comments: 1660
Tags
Disclaimer
The posts on this weblog are provided �AS IS� with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer�s view in any way.
My most popular blog posts (Q1 2008)
# Thursday, February 01, 2007
« A KillTask routine to terminate a proces... | Main | Using the WS_EX_COMPOSITE window style t... »

HTML Source Code Syntax Highlighter

Posted @ 11:22PM

Categories: Tools

Tags:

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.

Friday, February 02, 2007 12:30:49 AM (Pacific Standard Time, UTC-08:00)
Hi Steve,
Very nice highlighter!
Have you thought about wrapping it up as a Web Service?
P.
Friday, February 02, 2007 4:35:20 AM (Pacific Standard Time, UTC-08:00)
Steve,
One word - EXCELLENT!

This easily made it to my bookmarks...
Friday, February 02, 2007 5:48:08 AM (Pacific Standard Time, UTC-08:00)
Also, you can do this inside the BDS IDE if you use the community welcome page.
Friday, February 02, 2007 7:03:44 AM (Pacific Standard Time, UTC-08:00)
Hi Pawel,
At this point, no. I'm rather swamped with work right now so that will have to wait.
Saturday, February 03, 2007 2:14:08 PM (Pacific Standard Time, UTC-08:00)
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.
Saturday, February 03, 2007 9:51:18 PM (Pacific Standard Time, UTC-08:00)
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.
Monday, February 05, 2007 7:55:29 AM (Pacific Standard Time, UTC-08:00)
"//" comments are not handled correctly, however "{}" and "(**)" are.
Monday, February 19, 2007 1:40:09 PM (Pacific Standard Time, UTC-08:00)
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.
Eddie Shipman
Monday, February 19, 2007 2:02:44 PM (Pacific Standard Time, UTC-08:00)
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.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strong) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview