The TechNet Wiki Editor has a Format Code Block option (). Click it, insert some code, select a language, click Preview to see it, tweak the code, and then click OK. The source code is now formatted and into your article! To add line numbers on the left side of your code, click the checkbox in the middle, Display Line Numbers. Clicking the Format Code Block button opens the following popup window. But there is no option to select the Small Basic programming language. See Small Basic: How to Format a Code Block.
yottun8 edited Revision 30. Comment: Updated a link of pt-BR version.
Ed Price - MSFT edited Revision 28. Comment: Adding links to See Also
Ed Price - MSFT edited Revision 26. Comment: Adding images to make this awesomer.
Ed Price - MSFT edited Revision 25. Comment: Headers for TOC. Added TOC.
Ed Price - MSFT edited Revision 24. Comment: Added TOC. Making the top section more of an official How To on using the Editor's Code Block tool.
yottun8 edited Revision 18. Comment: Added the ja-JP link.
Horizon_Net edited Revision 17. Comment: added language tags
Ana Paula de Almeida edited Revision 16. Comment: Added: 'Other Languages' and 'Multi Language Wiki Articles' tag
Pronichkin edited Revision 14. Comment: Added Plain Code Box option
Pronichkin edited Revision 13. Comment: Added Visual Studio options.
hey guys, very nice feature in technet wiki pages. HOWEVER, after 5-6 repeated submissions using IE 10, had to give up download Firefox and submit text blocks this way. Otherwise, the formatting did not want to work for the code blocks... :(
Nice ..useful !!
Ed, just a suggestion..
Please implement format code block for F#. I believe it's needed and it's also part of Microsoft supported programming languages of Visual Studio since Visual Studio 2010.
This article was a pain to find, so I'm putting more of the searched terms in the title like "Code Block" and "Code Snippet".
Good Article.
Fantastic article!!