Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect syntax highlighting for PowerShell strings #58

Open
danielniccoli opened this issue Jan 4, 2016 · 2 comments
Open

Incorrect syntax highlighting for PowerShell strings #58

danielniccoli opened this issue Jan 4, 2016 · 2 comments

Comments

@danielniccoli
Copy link

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 dokuwiki/dokuwiki#1445 as I am not sure where this belongs to.

@danielniccoli danielniccoli changed the title Mishandled PowerShell strings Incorrect syntax highlighting for PowerShell strings Jan 4, 2016
@BenBE
Copy link
Contributor

BenBE commented Feb 1, 2016

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

@cweiske
Copy link
Member

cweiske commented Mar 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants