blob: 4511c241e4c613fca3b5721d33e81a9b90d4994c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
' First of all, this comment should be highlighted in a different
' font than the code.
'
' Next, the Function, Class, and Sub declarations should be
' highlighted. Their respective names should also be highlighted, but
' in a different font than the rest of the declaration.
Public Function IsProgramRunning() As Boolean
' The name of the variable is in the normal font face, but the
' keyword True should be highlighted.
IsProgramRunning = True
End Function
Public Class HelloWorld
' Strings get their own font face.
Private hello_text As String = "Hello, World!"
Public Sub DoHello()
Console.WriteLine(Me.hello_text)
End Sub
End Class
Sub Main()
' If you press <Tab> on the following lines, that line
' should be auto-indented to eight spaces (the visual-basic-mode
' default).
Dim ipr As Boolean = IsProgramRunning()
Dim hw As New HelloWorld()
' However, if you press <Tab> on the next line, it should be
' indented to four spaces to match the line above it (i.e. this
' comment).
hw.DoHello()
End Sub
|