Why does this still not work?
VB Code:
Dim i As Integer 'I seriously [b]hate[/b] VB!
What's up?Code:but does this work?
Printable View
Why does this still not work?
VB Code:
Dim i As Integer 'I seriously [b]hate[/b] VB!
What's up?Code:but does this work?
What's the question?
Why does BBCode work inside code blocks, but not highlight? See the difference in the two examples I posted?
Oh, I see. This was brought up before and unfortunately there's not much we can do about it.
The formatting seems to interrupting the way the tags work!
It works fine if you'd use ordinary CODE tags.
Code:Dim myVar As Integer 'you shouldn't hate VB because something isn't going your way ;)
But then one loses the highlighting... which is the point of the highlight...
I don't think anyone will lose anything - highlights are mostly pain and nothing more than that.
They don't "highlight" code properly and they don't allow copying code "normally" so you have to go through some workarround nonsense - that basically why I never use those tags.
AFAIAC as long as posted code is formatted and readable it's good - if you want to add some spice to it select text and highlight it with some color/bold/italic/etc (green comments perhaps).
I should follow in NoteMe's footsteps and create a modern vB extension for Firefox... something to make this kind of formatting easy...
I believe it has to do with whenboth things are parsed. In order for the plug-in that does the syntax highlighting to override the normal formatting of the forum, it must come last in the sequence, and it doesn't understand BB code.
But why does it have to come last? It makes sense in my mind that the inline code tags should always be the last ones parsed, just to ensure that the block tags don't break them. Maybe it's just me...
Edit:HTML Code://What about the [b]html[/b] tags?
The html tags don't work either!
Its taking a while because I'm perfecting the highlight as we all now that the built in highlights in vBulletin isn't great.Code:<Funny>It Works For Me</Funny>
<Im Currently="In The Middle">Of Editing x:Light To</Highlight> VB/C# code
Because highlighting inside of code tags works... just not inside highlight tags. He ran that text through his own BBCode parser before posting it.
Yup its my own engine, built in c#, their is also a basic version in the code bank witten in vb.