Posting code is a pretty easy these days.
To mark your code for highlighting, simply wrap your code in a BB styled tag like this.

Remove the space that is sitting between the “[" and the "C" in the given [_CODE] examples to make the actual tag work.
The spaces are used to stop Wordpress from parsing the tags we try to explain here.

[ CODE parameter="value" parameter="value"]
Your Code Here
          Your Code Here
Your Code Here
[ /CODE ]

next to this method, the plugin will look for the following tags as well, these so called aliasses will work also, but we will not guarantee that this will work in the future…

[ sourcecode parameter="value" ] ... [ /sourcecode ]
[ PHP ] ... [/PHP ]
[ CSS parameter="value" ] ... [/CSS ]
<CODE parameter="value" > ... < /CODE >

You can finetune the behaviour of the highlighter by adding various parameters. The list below shows the valid options and their functionality. Simply click on them for an example.

The available parameters;

  1. language=”"
  2. highlight=”"
  3. collapse=”true/false”
  4. htmlscript=”true/false”
  5. light=”true/false”
  6. padlinenumbers=”true/false”
  7. toolbar=”true/false”
  8. wraplines=”true/false”

Pages: 1 2