Menu

Syntax highlighter for Prolog

2009-09-07
2012-11-13
  • Andre Tampubolon

    Here's an example of Prolog code:
    :- module(someModule,[foo1,bar/2,baz/3]).

    How to make NPP highlight the "module" word only? I already tried, yet it seems that each keyword need to be separated by space in order to be highlighted correctly

     
    • cchris

      cchris - 2009-09-07

      Afaik, Prolog is supported as an user defined language, and this issue affects all of them. It wouldnt be hard to tweak LexUser.cxx to fix - specifically make isAWordChar() less permissive about brackets. Getting the code into official Notepad++ could be the hardest part.

      CChris