Results 1 to 16 of 16

Thread: BBCode inside [highlight] tags?

  1. #1

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    BBCode inside [highlight] tags?

    Why does this still not work?

    VB Code:
    1. Dim i As Integer 'I seriously [b]hate[/b] VB!

    Code:
    but does this work?
    What's up?

  2. #2

  3. #3

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: BBCode inside [highlight] tags?

    Why does BBCode work inside code blocks, but not highlight? See the difference in the two examples I posted?

  4. #4

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: BBCode inside [highlight] tags?

    The formatting seems to interrupting the way the tags work!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  6. #6

  7. #7

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: BBCode inside [highlight] tags?

    But then one loses the highlighting... which is the point of the highlight...

  8. #8
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: BBCode inside [highlight] tags?

    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).

  9. #9

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: BBCode inside [highlight] tags?

    I should follow in NoteMe's footsteps and create a modern vB extension for Firefox... something to make this kind of formatting easy...

  10. #10
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: BBCode inside [highlight] tags?

    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.

  11. #11

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: BBCode inside [highlight] tags?

    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...

  12. #12
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: BBCode inside [highlight] tags?

    HTML Code:
    //What about the [b]html[/b] tags?
    Edit:

    The html tags don't work either!
    Last edited by Nightwalker83; Mar 24th, 2009 at 07:11 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  13. #13
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: BBCode inside [highlight] tags?

    Code:
    <Funny>It Works For Me</Funny>
    <Im Currently="In The Middle">Of Editing x:Light To</Highlight> VB/C# code
    Its taking a while because I'm perfecting the highlight as we all now that the built in highlights in vBulletin isn't great.

  14. #14
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: BBCode inside [highlight] tags?

    Quote Originally Posted by DeanMc View Post
    Its taking a while because I'm perfecting the highlight as we all now that the built in highlights in vBulletin isn't great.
    I noticed you are hightlighting the tags too not only the code, strange that vbulletin should only that way and not the way timeshifter posted.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  15. #15

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: BBCode inside [highlight] tags?

    Because highlighting inside of code tags works... just not inside highlight tags. He ran that text through his own BBCode parser before posting it.

  16. #16
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: BBCode inside [highlight] tags?

    Yup its my own engine, built in c#, their is also a basic version in the code bank witten in vb.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width