Hi all,
I'm primarily a Delphi programmer, and I've made available a little tool I use to add syntax highlighting to my code examples. It can also handle VB, and can be quickly set up for others too. I spend most of my time in the Delphi forum, and a lot of people are really liking this tool.
It comes as both a stand-alone tool, as well as an optional Browser Helper Object that once installed (IE only), will automatically add syntax highlighting whenever you post a reply that contains a code example (using the [ignore]
[/ignore] blocks).
eg.
I think it really aids readability, particularly for large or complex code examples. The colours and formatting are completely customisable.
Download from here if you like For any issues with it, I can be contacted through the faq topic. faq102-6487
I'm primarily a Delphi programmer, and I've made available a little tool I use to add syntax highlighting to my code examples. It can also handle VB, and can be quickly set up for others too. I spend most of my time in the Delphi forum, and a lot of people are really liking this tool.
It comes as both a stand-alone tool, as well as an optional Browser Helper Object that once installed (IE only), will automatically add syntax highlighting whenever you post a reply that contains a code example (using the [ignore]
Code:
eg.
Code:
[green][i]' for automatic syntax highlighting see faq102-6487
[/i][/green][b]Private[/b] [b]Sub[/b] Worksheet_Change([b]ByVal[/b] Target [b]As[/b] Range)
[b]Dim[/b] rReserve [b]As[/b] Range, rDisplay [b]As[/b] Range
[green][i]' set range
[/i][/green] [b]Set[/b] rReserve = Range([navy]"A:Z"[/navy]) [green][i]'prices get entered in these columns
[/i][/green] [b]Set[/b] rng = Application.Intersect(Target.EntireRow, rReserve)
[b]If[/b] [b]Not[/b] rng [b]Is[/b] [b]Nothing[/b] [b]Then[/b]
[b]For[/b] [b]Each[/b] r [b]In[/b] rng
[b]If[/b] IsEmpty(r.Value) [b]Then[/b] [b]Exit[/b] [b]For[/b]
nThis = r.Value
[b]Next[/b]
[b]End[/b] [b]If[/b]
I think it really aids readability, particularly for large or complex code examples. The colours and formatting are completely customisable.
Download from here if you like For any issues with it, I can be contacted through the faq topic. faq102-6487