geshi-1.0
geshi-1.0 copied to clipboard
Incorrect syntax highlighting for PowerShell strings
In Dokuwiki I stumbled over PowerShell code that has incorrect syntax highlighting.
<code PowerShell>
$x = @"
"Curiouser and curiouser!" cried Alice (she was so much surprised,
that for the moment she quite forgot how to speak good English);
"now I'm opening out like the largest telescope that ever was!
Good-bye, feet!"
"@
</code>
This is how it looks like:
There are more code examples here: https://technet.microsoft.com/en-us/library/ee692792.aspx
I also posted this over at https://github.com/splitbrain/dokuwiki/issues/1445 as I am not sure where this belongs to.
You can try to handle this as multiline comment or using comment_regexp for more complicated cases.
BenBE gave you an advice how you might fix the GeSHi language file for powershell, not your code.