Syntax Highlighting

Ian

Administrative
Joined
Nov 13, 2005
Messages
80
Reaction score
22
We've got a GeSHi syntax highlighter enabled for our code tags - to use it, just wrap your code in tags with an option for the language.

Here are some examples (just remove the spaces from the brackets when using it for real):

[ code=php ] CODE [ /code ]

PHP:
echo "hello world";

[ code=javascript ] CODE [ /code ]

JavaScript:
alert( 'Hello, world!' );
 

Ian

Administrative
Joined
Nov 13, 2005
Messages
80
Reaction score
22
I've also added a few options to the insert > code menu on the editor toolbar :).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,038
Members
48,768
Latest member
first4landlord

Latest Threads

Top