See the page at Posting Source Code for further details when posting computer source code in your notes. The method enables syntax highlighting of the code posted.
Embedding computer language code looks something like:
your code goes here
In the above example, we’re posting code for the language Java. Many other languages are supported too.
When posting chunks of code, HTML Entity Codes can be used to prevent the browser incorrectly interpreting some of the characters. Typical examples are angle and square brackets.