PowerShell language multiline strings
-
Hi,
Is it possible to implement multiline strings for the language PowerShell?
$variable = @"start
multiline string
end "@Thnx.
-
-
This was recently implemented in v6.8.8
-
Hello dail,
does this mean npp developers do enhance/modify scintilla lexers?
I always thought this has to be done by scintilla devs themself.
I know scintilla is open source and there is a good reason for Don and
all the other contributors to make changes to enhance npps functionality.
Basically what I want to know is if we can ask npp devs for
lexer addition/changes.Thank you for your help.
Cheers
Claudia -
does this mean npp developers do enhance/modify scintilla lexers?
In general, no :)
I always thought this has to be done by scintilla devs themself.
That is still the case.
The reason the multi-line string is now supported is that it was available in Scintilla’s PowerShell lexer, but Notepad++ wasn’t “wired” up to use it. It was as easy as adding this line to the stylers xml file:
<WordsStyle name="COMMENT STREAM" styleID="13" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
The lexer would internally set that string to a styleID of 13, but without this line that style was using to the default style.
-
I guess I should also state that this is only for the default theme. The other themes are still missing this, but adding this line into the other themes under the “powershell” LexerType and giving it an appropriate color will allow it to show up with other themes.
-
Thank you very much for clarification.
Unfortunattely this means I need to be more careful
about the topic “what needs to be done by scintilla” and
what not. ;-)Cheers
Claudia