Syntax Highlighting

Ian

Administrator
Joined
Nov 13, 2005
Messages
80
Reaction score
20
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

Administrator
Joined
Nov 13, 2005
Messages
80
Reaction score
20
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
473,773
Messages
2,569,594
Members
45,122
Latest member
VinayKumarNevatia_
Top