geshi-1.0 icon indicating copy to clipboard operation
geshi-1.0 copied to clipboard

Incorrect syntax highlighting for PowerShell strings

Open danielniccoli opened this issue 9 years ago • 2 comments

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: geshi

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.

danielniccoli avatar Jan 04 '16 15:01 danielniccoli

You can try to handle this as multiline comment or using comment_regexp for more complicated cases.

BenBE avatar Feb 01 '16 22:02 BenBE

BenBE gave you an advice how you might fix the GeSHi language file for powershell, not your code.

cweiske avatar Mar 15 '17 20:03 cweiske