First published on MSDN on Jun 14, 2017
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.
Replacing <code> tags to <span> tags will avoid these issues. Litdev already done in his blog post .
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.
Authored 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.
Published Feb 12, 2019
Version 1.0NonkiTakahashi
Iron Contributor
Joined February 01, 2019
Small Basic Blog
Follow this blog board to get notified when there's new activity