View Full Version : Syntax highlighting for different code
Levenson
August 10th, 2009, 12:41
Hi everyone! I think it will be grate to create code blocks with syntax highlighting of bash script, Perl, c/c++, python...
graudeejs
August 10th, 2009, 12:49
No, that would most-likely destroy readability. And why do you need it? If you understand language, you will understand what's written in forum. If you don't understand language, syntax highlighting won't help.
If you need it so much you can always copy code to your favorite editor
DutchDaemon
August 10th, 2009, 12:50
There are other tags available for that, see the Advanced Editor ([html] and [php]).
Levenson
August 10th, 2009, 21:35
killasmurf86, I'm not understand you. Why it will destroy readability? You want to tell me that you use simple gedit or mousepad with out any highlighting?? I agree that it will not help you to learn language, but it really helps you with screening.
CodeBlock
August 10th, 2009, 22:29
I don't really see it destroying readibility, and I would find it a nice addition, but I won't cry if it's not implemented either. http://www.vbulletin.org/forum/showthread.php?t=93071 might be worth looking into (for the forum admins, if you're considering this).. I did a quick google and found it.
VictorM
December 29th, 2009, 02:05
I think they use this on the Perl VBulletin forum where I cry for help now and then - proves quite effective for large scripts. On the other hand, it hurts the minimalist look of bare Unix distris... I did not see the [php] option though, must have been disabled in the meanwhile
vivek
December 29th, 2009, 12:01
Considering that DD has to add code tags so many times a day, I don't think so it will make any difference to noob posting code.
fonz
December 29th, 2009, 14:20
I agree with vivek on this one.
Of course, if somebody who happens to be running a VBulletin board somewhere can implement this, I'm sure we could at least give it a shot.
However, in that case I also think killasmurf's point comes into play. Some people may find it distracting or illegible or they don't like the colors. So you'd need to at least be able to turn this feature on or off in your CP. All in all I think it adds more complexity than you'd think.
And finally, how does such a feature impact (server) performance?
Just some thoughts,
Alphons
DutchDaemon
December 29th, 2009, 21:05
I did not see the [php] option though, must have been disabled in the meanwhile
[php] (http://forums.freebsd.org/misc.php?do=bbcode#php)
http://forums.freebsd.org/images/editor/php.gif button in the advanced editor.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.