Howdy,
The open square bracket in C++ highlighted code doesn't work.. consider:
int blah[4];
.. in normal text.. then:
..in highlight.C++ Code:
int blah[4];
FIX PLEASE :D
chem
Printable View
Howdy,
The open square bracket in C++ highlighted code doesn't work.. consider:
int blah[4];
.. in normal text.. then:
..in highlight.C++ Code:
int blah[4];
FIX PLEASE :D
chem
Yea it would be nice to have a fix on the site but you can use the following application for now until it is fixed.
Coloring your code in vBulletin Posts
Plain Code Tags also work well.Code:int blah[4];
Cheers :DQuote:
Originally Posted by Hell-Lord
..but it doesn't look as pretty :pQuote:
Originally Posted by Hack
chem
You are kidding, right? :ehh:Quote:
Originally Posted by chemicalNova
I'll admit I think code without syntax highlighting is U.G.L.Y.. but I didn't think my request was all that hard.. surely, instead of the HTML code, its quickly changeable to return the actual character.. I'm no PHP guru, but it can't be too difficult :pQuote:
Originally Posted by Hack
Basically, the reason I requested this be fixed.. is I can see ALOT of people posting questions in the C++ section, receiving replies by people who use the highlight tags, and then complaining afterwards for the code being wrong (when its correct.. they've just copied and pasted it with the HTML in there). I figure it'll save, not alot, but a few headaches at least.
chem
None of us is saying the your request is over the top. We are merely supplying some work arounds that you can employ until such time as this is addressed.
Oh no problem then, I thought you thought I was being over-bearing :eek:Quote:
Originally Posted by Hack
All is well.. I will continue to highlight until its fixed.. but yeah.. thanks :)
chem
If you ask me then current "highlighting" tags make it ugly for any language - ordinary CODE ones at least make code to appear properly (and also easy copy/paste without special work around) which is much more important than colors .Quote:
Originally Posted by chemicalNova
My 2c anyway... :)Code:// some comments
Int blah[4];
The highlight tag is a third party add-in.....
That decreases the likelihood that we can get a fix....
Brad!
You can't just edit it? I thought it was just a whole bunch of PHP sitting around somewhere on the web server :pQuote:
Originally Posted by brad jones
Oh well.. guess I'll make do for now :)
chem
I'm sure the third party vendor has some sort of editing restriction in place.
I thought it came with the forum software, I really did.Quote:
Originally Posted by brad jones
In this case we can do something much better - we have plenty of talents here! :thumb:
It could be an open source project so everyone who's interested will contribute.
It could also be built as an Add-In and most importantly you will have the source right in your hands - maintenance wise it will be a breeze.
I hope you say YES, Brad. :)
Here is my shot for a solution. The syntax highlighter i posted in my first post (in this topic) is there anyway something like that could be made entirely in PHP and installed as part of the forums :) I am not to sure about PHP and all that web development but is able to be done?
The current version of vBulletin uses an 'add-in' system. We have installed an add-in to do the Highlighting. If you guys write and test a highlight add-in that works cleaner, then Joe can look at replacing the current one with the one you write. If you do it as an open source project on this forum, that would be even better :)
Brad!