How to post code?


I saw in the thread "2" code posted. But how can I do that also? (with the colors and so)
I've tried it but it didn't go well.



Hello Joep,

good question:)

Until today you could not, because it was disabled for all users except me.
The reason was that with that "Input Format" you could put HTML links in to the comments and forum postings, with which I had quite much problems in the past.

I played now a little bit with settings and now if you choose "Input Format" named "PHP Highlight" if you put there some code inside of <?php ?> it will be automatically displayed as you saw in the post "2" ( which I changed to PHP Highlight )

You can test it in this thread if you will :)


Trying with a 'line' of php

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.