This post has been republished via RSS; it originally appeared at: Small Basic Blog articles.
First published on MSDN on Jun 14, 2017Authored by Nonki Takahashi
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.
[code language="vb"]
' Sample Program
For i = 1 To 10
TextWindow.Write(i + " ")
EndFor
TextWindow.WriteLine("")
[/code]
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.