avatar

professional geek ramblings
est. 2003
About

sorry to my 2 readers

But I need to test out how my new syntax highlighting code is going to look in an aggregator. No offense, I hope.

1using System;

2
3namespace HighlightTest
4{
5 ///
6 /// Summary description for SampleCs.
7 ///
8 public class SampleCs
9 {
10 public SampleCs()
11 {
12 //
13 // TODO: Add constructor logic here
14 //
15 }
16
17 public void DoSomething( string s ) {
18 if( s == "string literal" ) {
19 return;
20 }
21 }
22
23 #region This is a Region

24
25 private void DoSomethingElse( int i ) {
26 int x = i;
27 }
28
#endregion
29 }
30}
31

1Imports System.Collections

2
3Public Class MyVbClass
4 Private m_MyString As String
5
6 Public Sub New()
7 myString = "Hello there"
8 End Sub
9
10 Public Property MyString() As String
11 Get
12 Return m_MyString
13 End Get
14 Set(ByVal Value As String)
15 m_MyString = Value
16 End Set
17 End Property
18
19#Region "This is my region"

20 ' This is a comment
21 Public Function MyFunction( ByVal i as Integer ) As Double
22 MyFunction = 123.456
23 End Function
24#End Region
25End Class
26