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
By way of example:
LikeLike
your example is perfect~ =)
LikeLike
Let’s give Syntax Highlight a test here and see whether it will work:
LikeLike
It’s too bad that it lacks auto correction to remove the space in “WhereThe EaglesFly()”.
LikeLike
yes~ but already good enough to post code snippet~
LikeLike
Yes, it is. 🙂
LikeLike