Test article with syntax highlighting
Posted by AnwarMar 1
This article demonstrates the syntax higtlighting for different languages.
Please test it with your browser.
C#
Hashtable phones = new Hashtable(); // Add items. phones.Add("John", "123-4567"); phones.Add("Enju", "351-8765"); phones.Add("Molly", "221-5678"); phones.Add("James", "010-4077"); phones.Add("Nelly", "110-5699"); phones.Add("Leah", "922-5699"); // Iterate through the collection. Console.WriteLine("Name\t\tNumber"); foreach (string name in phones.Keys) { Console.WriteLine(name +"\t"+ phones[name]); }
C/C++
#includeint main() { int i, j; // for statement example for (i = 5, j = 10 ; i + j < 20; i++, j++) { printf("\n i + j = %d", (i + j)); } }
SQL
SELECT * FROM MyTable WHERE ID=1 ORDER BY Name
No comments