corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
corzblog bbcode parser preview
Here it is! My [search engine fodder] bbcode to html parser, and html to bbcode parser [/search engine fodder]!
This is the actual very onsite parser that parses the bbcode of my blogs and site comments, which as well its usual tasks of, well, you know, the parsing stuff, also moonlights doing a cute wee background demo of itself, you're looking at it. it knew you wanted to do that. hit the "preview" button to see at least one half of the parser's bbcode to html/html to bbcode functionality.
The front-end (below) is built-in to the parser, you just call the
function and it creates the form. The cool, super-portable JavaScript bbcode buttons and functions come
in the package, too. Have fun. Oh, and by the way, output is 100% pure HTML5, or nice plain bbcode, which ever way you look at it, it's free.
Welcome to the comments facility!
that's what the pre tags are for!
;o)
(or
Hi, wow.. thanks for the major upgrade ;) well done for you..
And yes.. I think more people will find the phpbb id removal code usefull!..
Adam and Mike, the parses DO let you post codes within ur comments using the pre tags cor mentioned above..for example
like this
but then remove the spaces in /pre tag so that it look like this [/pre]
once again, thank you (or
Doh!
Your blog gets nice. Keep up the good work!!!
Yes, you can use the "pre" tag (pre-formatted text)... and if you download the latest beta, you can also use the "ccc" tag (cool colored code) for php examples..
<?php
// and dem pesky spammers..
foreach ($spammer_strings as $key => $value) {
if(stristr($bb2html, $value)) {
$bb2html = 'spammer';
} // zero tolerance!
}
?>
Which is quite nice, but isn't yet as colorful as I expected, I'll be looking into that (it may just be a css thing).
note, you need to include the <?php ?> tags if you want the syntax highlighting to work.
thanks Romi!
have fun dudes!
;o)
(or
actually, on posting that, I'm thinking we should just return right there..
<?php
// and dem pesky spammers..
foreach ($spammer_strings as $key => $value) {
if(stristr($bb2html, $value)) {
return 'spammer';
} // zero tolerance!
}
?>
yeah, that's better!
;o)
(or
ps.. fixed the colours! (v7.2b3)
oh how i feel....!
shame the newest aren't shown at the top
Well cute, it has been tried.
It works fine for blogs, but not so good for comments.
;o)
(or
test
writeln('');