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 ]
[ code=javascript ] CODE [ /code ]
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!' );