Discussion:
[Notepad-plus-plus] [notepad-plus - Open Discussion] Syntax highlighter for Prolog
SourceForge.net
2009-09-07 16:37:45 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7614502
By: dasubersoldat

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



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331753
SourceForge.net
2009-09-07 17:21:30 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7614560
By: cchris

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

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331753

Loading...