Code Syntax Highlighting in Posts

The test below

```cs
public void test()
{
  MessageBox.Show("testing");
}
```

will produce

public void test()
{
  MessageBox.Show("testing");
}

The 3 back tics ``` signify the start and end of a code block. The first set of 3 back tics are followed by the language type you have posted for be it C#, VB, or SQL.

The languages available to use are cs, xml, ini, objectivec, sql, vbscript, vbnet, sql, txt.
All the languages that could be included in the above list can be found here. highlight.js demo
If you see one we should make available to this site please let us know.

17 Likes