TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Nonki Takahashi
When:
29 Oct 2012 6:30 PM
Last revision by
Nonki Takahashi
When:
23 Mar 2015 5:53 AM
Revisions:
25
Comments:
19
Options
Subscribe to Article (RSS)
Share this
Engage!
Wiki Ninjas Blog
(
Announcements
)
Wiki Ninjas on Twitter
TechNet Wiki Discussion Forum
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Small Basic: How to Format a Code Block
Small Basic: How to Format a Code Block
Article
History
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.
A name started with a keyword is colored as the keyword partially.
Created HTML code collapses in some site (e.g. MSDN Blog) because of "</CODE" + CRLF + ">". To avoid this issue, remove CRLF in "</CODE>" before pasting to such sites.
See Also
Small Basic
Small Basic Forum: Code Blocks
TN Wiki: Known Issues: WE14. Colors Lost When an Article is Modified in IE
Other Languages
Small Basic: コードブロックの作り方 (ja-JP)
Small Basic: Comment formater un bloc de code (fr-FR)