Code blocks

PythonPython Forum LeaderThe Royal RAM
Im building a script where people can submit tutorials and I want to be able to make the code examples look different from standard text.

For example:

[PHP]This is an example[/PHP]

Perhaps I could have it so that a bit of javascript would insert the tag for example [TAG] and then it could be ended by inserting another bit via javascript saying [/TAG]...just like on this forum....

How can I do this?

The Royal Ram

Sign In or Register to comment.