Share via


Small Basic Code Block Generator: How to format a Code Block

Today's guest blogger is Nonki Takahashi. You can find the latest version of this article here on TechNet Wiki.

Nonki Takahashi's avatar

 

This article is especially for the Small Basic article writer on TechNet Wiki.  It 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 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 as the 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``(``""``)

 


See Also

Other Languages

 

You can find the most up-to-date version of this article here on TechNet Wiki.

Thanks to Nonki for this great article and for making the "Small Basic Code Block Generator" program! Nonki also provided the Japanese version of this article!

   - Tall Basic Ed

Comments

  • Anonymous
    December 11, 2012
    @ Nonki Do you mind me making a blog post about how to use that tool to format code blocks in the Small Basic Forum?

  • Anonymous
    December 11, 2012
    Math Man, I don't mind.  Please post your article.  Thanks.

  • Anonymous
    December 17, 2012
    Math Man, did you make the article? I'd like to link to it from here. Thanks!

  • Anonymous
    December 19, 2012
    Sorry. After I posted that I realized that readers would have to understand HTML before they would understand my explanation. And Small Basic users often haven't learned HTML.

  • Anonymous
    December 19, 2012
    Math Man, true, but you could always explain it for them. =^) Thanks!

  • Anonymous
    December 19, 2012
    I'll try to. :)

  • Anonymous
    December 21, 2012
    OK! Here's the explanation. gallery.technet.microsoft.com/Making-code-blocks-in-the-10ec2eaf

  • Anonymous
    December 21, 2012
    How can you move something from Technet Gallery to Technet Wiki?

  • Anonymous
    December 21, 2012
    Math Man, no you cannot move something. The TechNet Gallery is meant more for downloads of code and programs. The Wiki is more for writing articles. Looks like you added your article to the Wiki. So you can delete the Gallery item. Thanks!

  • Anonymous
    December 22, 2012
    Deleted the Gallery article.

  • Anonymous
    January 06, 2013
    Thanks Math Man!

  • Anonymous
    January 06, 2013
    I also use the Gallery to upload/download images and white paper files (like PDFs). Sometimes we'll write an article on TechNet Wiki and then post a PDF version on the Gallery, and then cross-link between the two. That way people can read it online but they can also download a PDF if they want to read it or share it that way, or if they want a good format for printing it out. Thanks!

  • Anonymous
    May 04, 2017
    TODO: Support new Small Basic official blog (powered by Word Press). There are following issues.- Background color for code is changed.- Redundant spaces are inserted between tokens.