Ask for support Perl5 new version & Perl6

  • Hi,
    Seems Notepad++ only support Perl5.8, for example: “print” is a keyword, but “say” is not.
    “say” is available since Perl5.10 ( ).
    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 Settings > Style Configurator > Language = Perl > Style = INSTRUCTION WORD > User-defined keywords = say, then Save & Close.

    If you also want to have auto-completion know “say”, edit Program Files (or 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 (Settings > Preferences > 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 Language > Define Your Language. You can see the UDL 2.1 documentation at

    [update: added menu path to auto-completion settings]

  • This post is deleted!

Log in to reply