Syntax Highlight

If you want to highlight the code when making your comment, wrap it with the following tag.
[sourcecode language=java]
<your code here>
[/sourcecode]

The above piece of code will be highlighted with Java code format.

The following languages are supported.
* actionscript3
* bash
* coldfusion
* cpp
* csharp
* css
* delphi
* erlang
* fsharp
* diff
* groovy
* html
* javascript
* java
* javafx
* matlab (keywords only)
* objc
* perl
* php
* text
* powershell
* python
* r
* ruby
* scala
* sql
* vb
* xml

Reference: WordPress.com – Posting Source Code

About these ads

6 thoughts on “Syntax Highlight

  1. tylersitegoals

    By way of example:

    class WordPress
    {
      string[] function getAllArticles()
      {
        return new Array();
      }
    }
    
    Reply
  2. SoundEagle

    Let’s give Syntax Highlight a test here and see whether it will work:

    class SoundEagle
    {
      string[] function WhereThe EaglesFly()
      {
        return new Array();
      }
    }
    
    Reply

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