View Full Version : problems with vb
Shoe
Fri 15th Sep '00, 10:37pm
Help! I want to be able to use vb code but not inside of [ code ]! On my board we post a lot of c++ code and have statements like arr[i] = i; which won't show up correctly (see, I can't write it unless I add spaces around the brackets like this: arr[ i ] -- which is impossible with a lot of code) So it turns everything into italics. How can I prevent this from happening?
Thanks
[Edited by Shoe on 09-16-2000 at 01:57 PM]
Menno
Sat 16th Sep '00, 5:33am
try to change the italicc, bold, etc. tags to something longer, that doesn't appear in C
or you could disable all vB code
Freddie Bingham
Sat 16th Sep '00, 2:02pm
John should modify the bbcode parseing to not parse any vbcodes after a [ code ] is encountered. The resume parsing after a [ /code ] is found.
TechTalk
Sat 16th Sep '00, 2:03pm
Originally posted by rangersfan
John should modify the bbcode parseing to not parse any vbcodes after a [ code ] is encountered. The resume parsing after a [ /code ] is found.
I agree with you 110% ! This is a regular problem on my site, where alot of code is posted.
~Chris
Mike Sullivan
Sat 16th Sep '00, 2:13pm
Originally posted by rangersfan
John should modify the bbcode parseing to not parse any vbcodes after a [ code ] is encountered. The resume parsing after a [ /code ] is found. Unfortunately, it's not that easy. PHP doesn't go through the string character by character. It just does a global replace in the whole thing.. :(
Shoe
Sat 16th Sep '00, 2:53pm
Originally posted by Menno
try to change the italicc, bold, etc. tags to something longer, that doesn't appear in C
or you could disable all vB code
Where do I go about changing vb code as you suggest?
TWTCommish
Sat 16th Sep '00, 3:08pm
In the control panel...there's an option to add to, edit, or delete BB code...near the bottom I believe. :)
Freddie Bingham
Sat 16th Sep '00, 3:19pm
Originally posted by Ed Sullivan
Originally posted by rangersfan
John should modify the bbcode parseing to not parse any vbcodes after a [ code ] is encountered. The resume parsing after a [ /code ] is found. Unfortunately, it's not that easy. PHP doesn't go through the string character by character. It just does a global replace in the whole thing.. :(
Well, yes, but if you want something done, there is always a way to do it with code. The problem is can it be done in a timely manner or will it be to slow to be useful
Mike Sullivan
Sat 16th Sep '00, 5:01pm
Originally posted by rangersfan
Well, yes, but if you want something done, there is always a way to do it with code. The problem is can it be done in a timely manner or will it be to slow to be useful [/B]Exactly. I had an idea that might've worked, but it probably would've FUBAR'd posts with more than one [ code ] tag. PHP doesn't really have a find matching brace/parentheses/string function, and creating one would probably produce extra overhead.
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.