Small Basic - Syntax Highlighter
I wrote a code block formatter SKC235-2 mainly for TechNet Wiki article. This tool was used also for this blog. But after MSDN blogs changing to WordPress platform, following issues have came up.
- gray background color for code
- redundant spaces between terms (words)
Replacing <code> tags to <span> tags will avoid these issues. Litdev already done in his blog post.
' Sample Program
For `` i `` = `` 1 `` To ``10
``TextWindow``.``Write``(`` i `` + ``" "``)
EndFor
TextWindow``.``WriteLine``(``""``)
The other hand, in this blog, SyntaxHighlighter plugin is enabled. Following code is rendered as Visual Basic.
' Sample Program
For i = 1 To 10
TextWindow.Write(i + " ")
EndFor
TextWindow.WriteLine("")
SyntaxHighlighter can support many programming languages on WordPress or for other web sites. So, I wrote a theme and a brush for SyntaxHighlighter to support Small Basic. At this point, I uploaded the files on my Japanese web site. In the future, I will upload these files to GitHub.