[Pmwiki-users] Highlighting <?php?
Thomas -Balu- Walter
list+pmwiki-users
Thu Mar 4 09:23:07 CST 2004
On Thu, Mar 04, 2004 at 08:40:57AM -0700, Patrick R. Michaud wrote:
> Using <?php...?> as the markup is obviously the most natural. This
> can be done in PmWiki 0.6.9 as a local customization...
>
> $BrowseDirectives['/(<\\?php\\s.*?\\?\\>)/es'] =
> "Keep(highlight_string(str_replace('\\\"','\"','$1'),TRUE))";
>
> See http://www.pmichaud.com/wiki/Development/PHPMarkup for a demo.
One caveat is source where HTML and PHP are mixed:
<?php
doSomePHP();
print('Hello World');
?>
a big HTML-only part
<?php
doMorePHP();
?>
Balu
More information about the pmwiki-users
mailing list