Steve Trefethen
Contact me
About Me View my LinkedIn profile
Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
Need consulting?
Need Consulting?

Spread Thunderbird

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.

Calendar

<<  February 2010  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

View posts in large calendar

HTML Source Code Syntax Highlighter

February 02 2007 7:22AM

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.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags:

Comments

2/2/2007 8:30:49 AM #

Hi Steve,
Very nice highlighter!
Have you thought about wrapping it up as a Web Service?
P.

Pawel Glowacki

2/2/2007 12:35:20 PM #

Steve,
One word - EXCELLENT!

This easily made it to my bookmarks...

Brad P

2/2/2007 1:48:08 PM #

Also, you can do this inside the BDS IDE if you use the community welcome page.

Craig Stuntz

2/2/2007 3:03:44 PM #

Steve Trefethen

Hi Pawel,
  At this point, no. I'm rather swamped with work right now so that will have to wait.

Steve Trefethen

2/3/2007 10:14:08 PM #

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 P

2/4/2007 5:51:18 AM #

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.

Steve Trefethen

2/5/2007 3:55:29 PM #

"//" comments are not handled correctly, however "{}" and "(**)" are.

Eddie Lotter

2/19/2007 9:40:09 PM #

Eddie Shipman

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

2/19/2007 10:02:44 PM #

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.

Steve Trefethen

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Spam filtering provided by: Spam Counter
54 comments approved, 392 spam caught since October 28, 2009
Powered by Commentor