Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4242413
By: fabioz

The pydev_formatter is actually for code-formatting, and not highlighting. To
do the highlighting, you'd have to change the 
org.python.pydev.editor.PyCodeScanner
to accept other keywords (and not only the ones that are 'statically' defined).

The way for doing that would be: 
1. create a preferences page for that
2. get the additional keywords to be highlighted as keywords from that page
3. Pass those keywords in PyCodeScanner.setupRules (together with the KEYWORDS)
4. In PyEdit.init make the internal Preferences.IPropertyChangeListener call
the update when the preference related to that keywords update the presentation
(just add it to the list of things we already check there).

Cheers,

Fabio


______________________________________________________________________
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=293649

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to