Search

Query

Log in to VuTales

Username

Password

Sign up

Username (5-13 characters)

Password (6+ characters, and something hard to guess)

Password again

Email (Must be valid)

What is 17 + 9? (Sorry, we have to ask)

VuTales on Discord
9 Posts
New and improved BBCode parser in the works
 
Wed Dec 28, 2011 10:53 PM +

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.

 

Replies

 
Thu Dec 29, 2011 01:35 AM +

 
 
Thu Dec 29, 2011 02:55 AM [Edited 2 times ] +

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

 
 
Thu Dec 29, 2011 07:25 AM +

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.

 
 
Thu Dec 29, 2011 03:29 PM +

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

 
 
Thu Dec 29, 2011 03:32 PM +

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

 
 
Thu Dec 29, 2011 03:43 PM +

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


cause marquee is cool

 
 
Thu Dec 29, 2011 06:41 PM +

VVcode. heeheehehehe.

 
 
Thu Dec 29, 2011 07:52 PM +

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.

 
 
Thu Dec 29, 2011 08:35 PM +

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

 

Login or sign up

You must be a member to reply or post. You can sign up or log in if you already have an account.