New and improved BBCode parser in the works

Home Forums Site Discussion New and improved BBCode parser in the works

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #3581
    Vusys
    Participant

    Everyone,

    I’ve been working on a new BBCode parser aimed at fixing some of the shortcomings of the current one. Notably adding support for [nocode] tags, turning floating URLs into hyperlinks and detection of broken BBcode.

    At the moment, I’ve only implemented the newer features and small subset of BBCode tags. I want to see if there are any show stopping bugs in what I’ve got so far.

    There are two issues I currently know about and will work on sometime soonish:
    Line numbering displayed for errors doesn’t increment inside [nocode] tags.
    There’s currently no error detection for [url] tags

    I’ve thrown together a quick demo script here:

    http://random.vuii.co.uk/abe_bbcode/abe_bbcode2.php

    Please try out the available BBCode and find any issues or quirks.

    I’ve set the script to time out after 5 seconds in case of any infinite loops or other problems. All code generates a report like this. Please link to it (if any ) if you find a bug.

    #23325
    David
    Participant

    #23327
    greenelf
    Participant

    Yeah I’m confused lol.
    The BBCode on the test page doesn’t work here :3

    #23329
    Vusys
    Participant
    greenelf said: Yeah I’m confused lol.
    The BBCode on the test page doesn’t work here :3

    Explain?

    Just manually type in some code like

    [b]bold[/b]

    and click parse.

    #23331
    greenelf
    Participant
    Vusys said:

    greenelf said: Yeah I’m confused lol.
    The BBCode on the test page doesn’t work here :3

    Explain?

    Just manually type in some code like

    [b]bold[/b]

    and click parse.

    No, like the subscript and superscript tags don’t work here, but they work on the test page

    #23332
    Joaco
    Participant

    Why do you even bother to add blink, bl and marquee tags?

    #23333
    greenelf
    Participant
    Joaco said: Why do you even bother to add blink, bl and marquee tags?

    cause marquee is cool

    #23334
    Merovign
    Participant

    VVcode. heeheehehehe.

    #23335
    Joaco
    Participant
    greenelf said:

    Vusys said:

    greenelf said: Yeah I’m confused lol.
    The BBCode on the test page doesn’t work here :3

    Explain?

    Just manually type in some code like

    [b]bold[/b]

    and click parse.

    No, like the subscript and superscript tags don’t work here, but they work on the test page

    that’s because the code used here is not the same as the one used in that page.

    #23336
    greenelf
    Participant
    Joaco said:

    greenelf said:

    Vusys said:

    greenelf said: Yeah I’m confused lol.
    The BBCode on the test page doesn’t work here :3

    Explain?

    Just manually type in some code like

    [b]bold[/b]

    and click parse.

    No, like the subscript and superscript tags don’t work here, but they work on the test page

    that’s because the code used here is not the same as the one used in that page.

    yeah I figured lol

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.