Which language to use, to get best highlight of MediaWiki templates?
Topic on Extension talk:SyntaxHighlight
I use 'haskell' for syntaxhighlight extension. But here, if is need , I use another variant. I.e. for extension Extension:LoopFunctions I used combination of the templates. For curly brackets: Template:(((, Template:))) and Template:((, Template:)). For vertical bar Template:!. For colorize Template:red, Template:blue, Template:green. And parser function #tag.
Sorry, no “best solution” for now.
- Someone would need to create a MediaWiki “lexer” and upload it to upstream (3rd party software). One year later our
{{
and[[
and{{{
stuff will be rendered nicely.