I wonder how accurate the infos are if they adapt automatically to the current Perl version.
Above my knowledge grade, I fear. But the language support system is written using plugins, so it would be possible to write a different plugin for every Perl version and then select the one currently in use.
Will it also offer to insert a snippet with jump-points for the arguments?
Not in the version I am using, but that does not mean it could not be done using a different plugin, which may even exist. I haven't looked.
Regards,
John Davies
| [reply] |
I wonder how accurate the infos are if they adapt automatically to the current Perl version.
I did a bulk conversion from the Perl 5.30 perlfunc.pod into the Notepad++ auto-completion file for Notepad++ in May 2020, which was a drastic improvement from the pre-v5.10 keywords available before (it didn't even have say!). (And recently, vinsworldcom and I collaborated on getting more of the pragmas into the auto-completion and syntax highlighting lists.) Since it's been a couple years now, I should probably go check for the changes from 5.30 to 5.36 and add those in.
Above my knowledge grade, I fear. But the language support system is written using plugins, so it would be possible to write a different plugin for every Perl version and then select the one currently in use.
Not exactly. The function auto-completion feature is built in to Notepad++, and that's what's providing the popups with the selectable variants (such as your example with split having four variants). The syntax highlighting is done by the Scintilla/Lexilla Perl lexer that is included in Notepad++. You could, in theory, change the autoCompletion\perl.xml every time you wanted to change Perl version, restarting Notepad++ after that change, but I'm not sure it's worth the effort. Regarding LSP, there are a couple of people that I know are working on LSP clients for Notepad++, though they haven't been officially released yet; but I don't think even those would be easy to customize to easily swap between Perl versions.
Will it also offer to insert a snippet with jump-points for the arguments? Not in the version I am using, but that does not mean it could not be done using a different plugin, which may even exist
Notepad++ doesn't have a built-in snippet-with-jump-point feature. There are plugins for that, including the QuickText plugin that vinsworldcom maintains.
| [reply] [d/l] [select] |
My use of terminology may be inaccurate, but it's certainly possible to add syntax highlighting for new languages. One example is markdown, for which there is an implementation at https://github.com/Edditoria/markdown-plus-plus. My thinking was that each version of Perl might have its own file, such as perl5036.xml, treating it as an independent language in the same way as markdown. This would avoid the need to reboot for different languages. But I may have misunderstood something. This is still above my knowledge grade.
Regards,
John Davies
| [reply] [d/l] |