Quantcast
Channel: Small Basic
Viewing all articles
Browse latest Browse all 669

Small Basic – Syntax Highlighter

$
0
0

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.


Viewing all articles
Browse latest Browse all 669

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>