[Pmwiki-users] Pre-formatted text hook?
Patrick R. Michaud
Thu Oct 9 16:45:07 CDT 2003
When something like this gets added, it will probably be as part of the
$BrowseDirectives array, and there will be a global function for
being able to insert things into $kpv.
On Thu, Oct 09, 2003 at 01:21:10PM -0400, J. Perkins wrote:
> I was wondering if it would be possible to add a hook for extending the
> preformatted text syntax [= ... =], something along the lines of what I
> did for the "beautifier" plugin? There, I look at the text immediately
> following the opening brace, so
> [=cpp ... =]
> means a block of preformatted C++ code. Currently, it is necessary to
> modify the PrintText() function in pmwiki.php. Is there any possibility
> of creating an official mechanism for this sort of thing? What is needed
> is a way to register a handler for a particular type of preformatted
> text, which would be called with the enclosed text. The handler would
> return a new block of text that would be placed into the "$kpv" array.
> Feel free to recommend a new markup, I just did what was easiest.
> Thanks! And as always keep up the great work!
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
More information about the pmwiki-users