Syntax Highlighting

Ian

Administrator
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

Administrator
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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top