Revision [8491]
This is an old revision of AdvancedFormatter made by DarTar on 2005-05-26 08:07:07.
Advanced Formatter
This is the development page (stub) for an advanced Wikka formatter.
The code written by JavaWoman (tested and ready to be installed on this server as a beta feature) addresses several issues of the current formatter. In particular, it fixes a number of small formatting bugs, and adds new important features - like automatic generation of id's for headers and forms - required for XHTML compliance and for extensions like anchors, TOC's and advanced styling through CSS.
What's new
wikka.php
- compatibility code (like mysql_real_escape) used by wakka.php when generating ids for headings;
- revised FormOpen() using makeId();
- makeId() and its supporting code;
- a first draft of makeList() to generate a list from an array (only 'flat' arrays supported for now);
./formatters/wakka.php
- using single quotes wherever possible making regexes and generated HTML easier to read;
- better closing of open tags at end of document, including open indents and lists;
- escaping single & (not part of an entity);
- handling ids (and making them unique) in embedded code;
- creating ids for headings based on content ('afterburner' type so this includes originally embedded code)
The code
(forthcoming)
CategoryDevelopment