Blog Post

Small Basic Blog
1 MIN READ

Small Basic - Syntax Highlighter

NonkiTakahashi's avatar
NonkiTakahashi
Iron Contributor
Feb 12, 2019
First published on MSDN on Jun 14, 2017

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.0
No CommentsBe the first to comment