Wednesday, March 24, 2004 11:25 AM Christopher

How did I format that code?

Nick Berardi asks:

How did you format this code, I really like that.

It was pretty easy, I used some code that I modified from the original SquishySyntaxHighlighter component written by Adam Sills. The original code uses lots of [span style=] tags, and even uses javascript to collapse/expand #regions if you're using code written from Visual Studio.NET. I modified it to use mostly [font] tags and 86'ed the javascript, so it would show up in an aggregator better.

Filed under:

Comments

# re: How did I format that code?

Wednesday, March 24, 2004 1:22 PM by Scott Galloway

Any plans to make your version available?

# re: How did I format that code?

Wednesday, March 24, 2004 1:57 PM by Chris Frazier

If you'd like a copy, ping me. It's still LGPL'ed under the terms of the original licence, since all I did was modify Adam's code.

I've already sent a copy to Robert McLaws - it looks like he's already put it to some use with his new tool. Check the formatting of the code in his posts:)

# re: How did I format that code?

Wednesday, March 24, 2004 5:03 PM by David Cumps

Very very nice!

I was copy pasting code into Word and then onto .Text :)

# re: How did I format that code?

Wednesday, March 24, 2004 6:03 PM by Robert McLaws

Yep, my new blog tool uses Chris's modified version. It's super slick, and has made the process of posting code extremely enjoyable. I will probably go back through all my old posts and reformat the code once my tool supports editing posts through the metaWeblogAPI.

Leave a Comment

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