Click to See Complete Forum and Search --> : why does [vbcode] not work?
JuggaloBrotha
May 14th, 2007, 11:11 AM
I'm just wondering why the admin hasn't fixed the [ vbcode][ /vbcode] tags yet, seems like they would have noticed that a few months ago.
18experience
May 14th, 2007, 11:15 AM
I belive the way tags operate now is intentional. Thats why I switched to quote. There is a way to have it display VC code, but it has those annoying line numbers out to the side (which I have yet to see someone reference).
kleinma
May 14th, 2007, 11:26 AM
you can either use the standard CODE tags that have always existed, or you can use HIGHLIGHT tags, which use the syntax
[ HIGHLIGHT=vb][/HIGHLIGHT]
the drawback to using highlight is that if you copy and paste code FROM The forum into something like the IDE, it does NOT give you line breaks which is rather annoying. That is why post people have just been using code tags, but they do not provide syntax highlighting.
The VBCODE tags were a hack that we applied to the forum, and they no longer function after we upgraded the forum. There are currently no plans to bring them back, but we might be able to make some improvements on the HIGHLIGHT tags.
Hack
May 14th, 2007, 11:41 AM
The highlight tags are useful (other than the copy n paste faux pas) because they apply to more than just vb.
For instance, you can also do:
[ HIGHLIGHT=c][/HIGHLIGHT]
[ HIGHLIGHT=sql][/HIGHLIGHT]
[ HIGHLIGHT=php][/HIGHLIGHT]
JuggaloBrotha
May 14th, 2007, 11:47 AM
i guess i'll start using the highlight tags
thanks for the info
Hack
May 15th, 2007, 06:12 AM
Also, Martin Liss has developed an addin that addresses the copy/paste issue with the Highlight Tags.
You can find that add-in here. (http://www.vbforums.com/showthread.php?t=458438)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.