Visual Basic .NET/Style Guide

From Wikibooks, open books for an open world
Jump to navigation Jump to search

This is the style guide for the Visual Basic .NET wikibook. Please try to follow it when making changes or additions to this book. If you find a page that does not follow this guide please change it.

Code[edit | edit source]

When adding code examples, please color it as it would appear in VB .NET. Use the span HTML Tags to do this. Example:

<span style="color:green;">' This is a comment</span>
 <span style="color:blue;">Dim</span> x <span style="color:blue;">As</span> Integer = 5
 <span style="color:blue;">Dim</span> s <span style="color:blue;">As</span> String = <span style="color:#A31515;">"Hello World!"</span>

produces:

' This is a comment
Dim x As Integer = 5
Dim s As String = "Hello World!"
Apologies I just stumbled across this and have been updating some of the pages using the <syntaxhighlight lang="vbnet"> tag. Please feel free to revert Pluke (discusscontribs) 15:15, 25 February 2012 (UTC)