A
Anonymous
Guest
Hey, everybody!
I'm pretty new to this forum, so let me introduce myself with a script that I completed just recently
It's a general-purpose and highly-extensible-and-flexible event-based markup parser. I've been working on this since about 4 days, and it was very difficult to make, but is finally done! I made this because I needed it in a CMSF project that I'm working on.
Here's the link: https://www.solidfiles.com/v/k3RKypwDmrqMB (a copy of the license, CLNS, can be found in License.txt)
Here's a simple example:
Unfortunately, I haven't quite completed it, so the validator isn't done, and inline tags aren't done either. If you feel like helping, you can edit it and post it here.
You can see all of the available functions in the parser.php file.
I'm pretty new to this forum, so let me introduce myself with a script that I completed just recently
It's a general-purpose and highly-extensible-and-flexible event-based markup parser. I've been working on this since about 4 days, and it was very difficult to make, but is finally done! I made this because I needed it in a CMSF project that I'm working on.
Here's the link: https://www.solidfiles.com/v/k3RKypwDmrqMB (a copy of the license, CLNS, can be found in License.txt)
Here's a simple example:
Code:
$parser = new iSAXParser("[@[command]]", "[/]");
$parser->Load("[color]This is red text[/] And this is plain text");
echo($parser->Parse(function ($command, $body)
{
if ($command == "color") return "<span style=\"color:red\">$body</span>";
else return $body;
}));
You can see all of the available functions in the parser.php file.