Home › Forums › Site Discussion › New and improved BBCode parser in the works
- This topic has 9 replies, 5 voices, and was last updated 13 years, 10 months ago by
greenelf.
-
AuthorPosts
-
28 December 2011 at 22:53 #3581
Vusys
ParticipantEveryone,
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] tagsI’ve thrown together a quick demo script here:
http://random.vuii.co.uk/abe_bbcode/abe_bbcode2.phpPlease 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.29 December 2011 at 01:35 #23325David
Participant
29 December 2011 at 02:55 #23327greenelf
ParticipantYeah I’m confused lol.
The BBCode on the test page doesn’t work here :329 December 2011 at 07:25 #23329Vusys
Participantgreenelf said: Yeah I’m confused lol.
The BBCode on the test page doesn’t work here :3Explain?
Just manually type in some code like
[b]bold[/b]
and click parse.
29 December 2011 at 15:29 #23331greenelf
ParticipantVusys said:greenelf said: Yeah I’m confused lol.
The BBCode on the test page doesn’t work here :3Explain?
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
29 December 2011 at 15:32 #23332Joaco
ParticipantWhy do you even bother to add blink, bl and marquee tags?
29 December 2011 at 15:43 #23333greenelf
ParticipantJoaco said: Why do you even bother to add blink, bl and marquee tags?cause marquee is cool
29 December 2011 at 18:41 #23334Merovign
ParticipantVVcode. heeheehehehe.
29 December 2011 at 19:52 #23335Joaco
Participantgreenelf said:Vusys said:greenelf said: Yeah I’m confused lol.
The BBCode on the test page doesn’t work here :3Explain?
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.
29 December 2011 at 20:35 #23336greenelf
ParticipantJoaco said:greenelf said:Vusys said:greenelf said: Yeah I’m confused lol.
The BBCode on the test page doesn’t work here :3Explain?
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
-
AuthorPosts
- You must be logged in to reply to this topic.