Interoperability with filters

Interoperability with filters

by Stuart Anderson -
Number of replies: 0
Hi Ludo,

I've been playing around with the syntax highlighter filter which now seems to work fairly well.  However, if used in the standard moodle wiki or the dfwiki, it breaks.  The problem is that the syntax to trigger the code highlighter is this:

[code lang] ... [/code]
e.g.
[code php]
<?php ...
?>
[/code]

...which of course conflicts with the wiki markup to create new links.  I've tried using the <nowiki> tag in dfwiki but code blocks still fail to be filtered.  To interoperate with any future moodle filter, of which the user of square brackets seems to be a convention, I think that the <nowiki> markup needs to prevent the wiki processing content from the starting <nowiki> and everything until a </nowiki>.

Has this already been considered?  What do you think? Sorry in advance for suggesting more problems!

Regards,

Stuart.
Average of ratings: -