Code Syntax Highlighting in Posts


(Joshua Giese) #1

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. https://highlightjs.org/static/demo/
If you see one we should make available to this site please let us know.


C# help
Ideas to implement an Order Change Log
Problem with CustShip Adapter
Help with building a BAQ that shows indented BOM for all open sales line item
Save Layouts Action Not Working
BAQ Odata help
Formatting Code block
Incorrect Syntax near the keyword 'AS'
Please format the code in your POSTS!
Customize 2nd MES menu button
Dashboards to MES Menu
Dashboard Hyperlinks
Please format the code in your POSTS!
(Joshua Giese) pinned globally #2

(Jose C Gomez) unpinned #3

Posting Code
"Best" way to export data on a schedule