|
|
Customizing ewiki_format()There are various markup extension plugins available for ewiki, which allow you to use BBCode or the syntax of another WikiWare+. But if you have a closer look at $ewiki_config (the defaults are in 'ewiki.php' around line 200), you'll notice, that you can configure the WikiMarkup that is to be used. Various "wm_..." entries map our obscure markup to html <tags> (or at least fragments of them). So in order to add a feature you could insert an own rule there. (But keep in mind, that every new WikiMarkup slows down the transformation function.) Often you want to append an entry to "wm_style", for example: $ewiki_config["wm_style"]["==="] = array("<h1>", "</h1>"); Would allow you to write "=SomeText+=" in a WikiPage+, which then would display as an far-too-large headline. You can also add markup with different 'start' and 'end' characters, using the "wm_start_end" entry in $ewiki_config. For example the following would render "... ((((some text)))) ..." in a page using the html <kbd> tag: $ewiki_config["wm_start_end"][] = array( "((((", "))))", "<kbd>", "</kbd>", ); Please see the section on "ewiki_format() internals" on how to write a ["format_..."] or markup plugin, see README.programming+.prev << "Customizing ewiki_format()" next >> "Customization using CSS" You cannot modify the README file, but anyhow any ideas or suggestion should as usually get filed on BugReports, UserSuggestions or even better the README.Discussion. |