Ask for support Perl5 new version & Perl6
Seems Notepad++ only support Perl5.8, for example: “print” is a keyword, but “say” is not.
“say” is available since Perl5.10 ( http://perldoc.perl.org/functions/say.html ).
Perl6 is not supported also.
Does Notepad++ has a plan to fix this? OR
Can I add keyword into notepad++ myself? How?
NEED FOR HELP. Thanks!
To add a keyword yourself to syntax highlighting, use
Save & Close.
If you also want to have auto-completion know “say”, edit
Program Files (x86)for 32bit on 64bit win)
...\Notepad++\plugins\APIs\perl.xml, and add the “say” keyword alphabetically in the list, as shown. (You may have to restart NPP for this change to take effect.)
After turning on auto-completion (
☑ Enable auto-completion on each input), “say” will show up in the list of available words
As far as Perl6: you could just add keywords on top of Perl5… but some argue it’s a whole different language, and should thus get its own lexer. I don’t know if there’s a Perl6 lexer for Scintilla yet, but it’s definitely not yet included with the Scintilla that NPP uses. Alternatively, if you don’t need the complex aspects of the syntax highlighting, you might be able to get away with a User Defined Language (UDL) thru
Define Your Language. You can see the UDL 2.1 documentation at http://ivan-radic.github.io/udl-documentation/.
[update: added menu path to auto-completion settings]
This post is deleted!