Forum Archive Home -> Feedback -> Adding 'syntex' highlighting or 'color text' to source code snips ?
Adding 'syntex' highlighting or 'color text' to source code snips ? | ||
| vhelp posted 2009 May 27 21:33 | ||
| Would it be possible to include color coded text or syntex highlighting to our code/code block tags under the programmers sections ?
This is a missing though very useful feature to have, especially when trying to hard-code the color for functions and variables, etc. in these discussions. Please consider this feature, thank you. some examples:
* http://code.google.com/p/syntaxhighlighter/ Another example, though different, for PHP * http://www.weberdev.com/get_example-4831.html -vhelp 5133 | ||
| thecoalman posted 2009 May 29 15:04 | ||
This is standard feature in phpBB3 a lot of people are not aware of, just add =php in the code box tag.
Works well for most code including HTML. Shouldn't be that hard to implement anywhere as it's a built in PHP feature as I understand it. ![]() | ||
| vhelp posted 2009 Jun 07 19:23 | ||
| nope, suggestion failed.
http://forum.videohelp.com/topic369074.html#1975689 -vhelp 5140 | ||
| Baldrick posted 2009 Jun 08 06:08 | ||
Maybe because this forum still runs phpbb 2. :) | ||
| thecoalman posted 2009 Jun 08 13:11 | ||
| Sorry vhelp I didn't mean to suggest you could use it here, what I meant was it's built in php function. To implement balbrick would have to hack the code that parses the bbcode so it parses anything in the code tags with it.
One problem I have encountered myself with it is that it creates and enormous amount of text to insert into the database between all the tags and having to escape them all. |
Login/Register to our forum to be able to post here.

