Add Code to Comments

Just a heads up that you can add code to comments on my site. All you have to do is wrap it in [cc lang=”lang”][/cc] and replace “lang” with the language of your choice like html or PHP.

It’s really handy for posting stuff like this:

1
2
// some code
$this->writeImportantStuffHere();

See my example comment below for an example.

Special thanks to the Code Colorer Extenson from kpumuk.

One Response to “Add Code to Comments”

  1. michaelgrosser January 10, 2011
    1
    2
    // Here is code in comments
    $this->writeImportantCommentStuffHere();

Leave a Reply