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:
class WordPress { string[] function getAllArticles() { return new Array(); } }your example is perfect~ =)