-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect List BBCode syntax #22
Comments
PHPBB is not official BBCode syntax, it's just a forum that wrote their own code for it. Decoda is written the way it is to support its lexical parser. |
Invision Power Board use this syntax too, and many others services ! |
The only thing different is [*] which I will not support. |
It may be interessent to support a syntax knowned by many users ! |
Why ? I'ts may be interessent to respect a syntax used by millions of 2012/9/20 Miles Johnson notifications@github.com
|
Because they use regex parsing while I use lexical parsing, and frankly, it's not easy to add support for that kind of tag into the lexical parser. Secondly, how powerful is [*]? From the looks of it, not so much. It wouldn't handle nested lists or tags efficiently. |
But you can do modes, with support who wants the user. If you want an idea for the code, I've a code who does not function very well. |
Not sure what you are talking about, but feel free to show me an example. |
Here is the code :
|
That's using regex which I do not use. |
Why ? |
Because regex is the worst possible route to take when creating parsers. I use lexical parsing: http://en.wikipedia.org/wiki/Lexical_analysis |
Hello,
Why you don't respect the official syntax of BBCode List ? Source : http://forums.phpbb-fr.com/faq.php?mode=bbcode#f3r0
remontees
The text was updated successfully, but these errors were encountered: