Posting Source Code

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:


[sourcecode language="java"]
your code goes here
[/sourcecode]

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.

Advertisements
This entry was posted in reminder and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s