I know is been discussed, but it mentioned older versions in the discussions.
Can we add a new WordsStyle to the php language in the stylers.xml and new keyword list to lang.xml and have the new words work? or is this still not possible for PHP.
I went through the process and even though the new name appear in Style Configurator it does not apply the colour to the new keywords.
Thanks for such a great program.
JFercan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The post is very old, but there is still the problem that you cannot create 2 ore more wordlists for php syntax. For example i want to colorize keywords like if then else … in one color and function names like include print .. and so on in another color. The user defined languages are not the best solution for this problem, cause there are problems with strings and operators. The best way, in my opinion, is to find a way how to create more than one wordlist. maybe you can make the lexers more flexible.
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is probably not possible with the current built-in lexers - I haven't checked those which came with v2.25 yet. You can always vote for http://sourceforge.net/apps/ideatorrent/notepad-plus/ideatorrent/idea/174/ to show there is pressure on this topic, so that it gets reported to the Scintilla project.
I know is been discussed, but it mentioned older versions in the discussions.
Can we add a new WordsStyle to the php language in the stylers.xml and new keyword list to lang.xml and have the new words work? or is this still not possible for PHP.
I went through the process and even though the new name appear in Style Configurator it does not apply the colour to the new keywords.
Thanks for such a great program.
JFercan
The post is very old, but there is still the problem that you cannot create 2 ore more wordlists for php syntax. For example i want to colorize keywords like if then else … in one color and function names like include print .. and so on in another color. The user defined languages are not the best solution for this problem, cause there are problems with strings and operators. The best way, in my opinion, is to find a way how to create more than one wordlist. maybe you can make the lexers more flexible.
Peter
This is probably not possible with the current built-in lexers - I haven't checked those which came with v2.25 yet. You can always vote for http://sourceforge.net/apps/ideatorrent/notepad-plus/ideatorrent/idea/174/ to show there is pressure on this topic, so that it gets reported to the Scintilla project.
<ad>
Perhaps https://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=IdeaTorrent_Summary is a nice place to visit before asking.
</ad>
CChris