[pmwiki-users] How hard would it be to have (:comment:) output an HTML comment?

Hans design at flutesong.fsnet.co.uk
Wed Aug 3 15:54:12 CDT 2005

Wednesday, August 3, 2005, 9:31:45 PM, Chris wrote:
> I'd love to be able (for example) to insert:

> (:comment PAGE BREAK:)

> into my wiki page and have the HTML output contain:

> <!-- PAGE BREAK -->

> Possible?  Would it break something to have (:comment:) behave
> this way??

(:comment:) works by not passing anything in it on to HTML:
Markup('comment', 'directives', '/\\(:comment .*?:\\)/i', '');

You would need to use a custom markup I think, perhaps this:

## markup (:pagebreak:)
Markup("pagebreak",'directives','/\\(:pagebreak:\\)/i','<!-- PAGE BREAK -->');

(not tested)


More information about the pmwiki-users mailing list