Showing posts with label blogger. Show all posts
Showing posts with label blogger. Show all posts

2009-09-17

...and the class blurb for SyntaxHighlighter

Great tool that SyntaxHighlighter. Followed this post and got exactly what's written on the tin.

Now, since I'm of a forgetful nature, the syntax for the <pre> modifier is <pre class="brush: <brushname>"> where <brushname> is one of text, bash, xml, cpp or any of the keywords highlighted here.

...and the UltraEdit Macro script to convert code for blogger publishing

Courtesy of Rob, to which I added the & -> &amp; conversion:
InsertMode
ColumnModeOff
HexOff
UnixReOff
IfSel
Find SelectText "&"
Replace All "&amp;"
Find SelectText "<"
Replace All "&lt;"
Find SelectText ">"
Replace All "&gt;"
Find SelectText """
Replace All "&quot;"
Find SelectText "^t"
Replace All " "
Else
GotoLine 1 1
Find "&"
Replace All "&amp;"
Find "<"
Replace All "&lt;"
Find ">"
Replace All "&gt;"
Find """
Replace All "&quot;"
Find "^t"
Replace All " "
EndIf