Small Basic: How to Format a Code Block

Small Basic: How to Format a Code Block

This article is especially for the person who's writing Small Basic articles on TechNet Wiki (but this also works for the forums).  This article explains the Code Block Generator v1.3
 
There is a menu icon of [Format Code Block] to generate code block in TechNet Wiki [EDIT] menu bar.



This [Format Code Block] tool shows following popup window.  But there is no option to select the Small Basic programming language.



 So, we need another tool to generate a Small Basic code block.  The Small Basic program ID SKC235-1 is a tool for that.



Usage of this tool is almost the same as TechNet Wiki's [Format Code Block].  If you click the [OK] button, you will see the following window:



And copy this code block and paste with [PasteHTML] button into TechNet Wiki [EDIT] screen.  Then you get the following code block:

' Sample Program
For i = 1 To 10
  TextWindow.Write(i + " ")
EndFor
TextWindow.WriteLine("")

History of Code Block Generator

v1.3 (SKC235-1) - explained in this article.
v1.4 (SKC235-2) - string and number colors are distinguished.
Known issues still alive in v1.4:
  • Hang up at a line ended with CR (0x0D) or LF (0x0A) only.  Newline should be CR+LF.


See Also

Other Languages

Sort by: Published Date | Most Recent | Most Useful
Comments
  • Very cool app - thanks for making it.  I just used it in a couple wiki posts.

  • I added a link to Math Man's article "Small Basic Forum: Code Blocks".

  • Does this generator also work with other languages better than the Wiki's Format Code Block tool?

  • This code block generator is only for Small Basic.  But this code block generator is also generated by other Small Basic program "Parser Generator 1.3".  So if we change the parser generator, we can create the other code block generators for other languages.  cf. social.msdn.microsoft.com/.../7ef79db5-43a4-4a3d-956d-d7b055eb0f60

Page 1 of 1 (4 items)