Menu

PHP syntax highlighting

2007-03-23
2012-11-13
  • Fernando Grijalba

    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

     
  • Peter Hacke

    Peter Hacke - 2011-03-28

    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

     
MongoDB Logo MongoDB