News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Lexer

Started by moloh, May 13, 2006, 03:03:06 AM

Previous topic - Next topic

moloh

Hello!
Next annoying question. I want to modify C/C++ lexer. How can i add user keywords?
Should i modify globallexer xml files?
If this is possible to have lexer files in home directory as i don't want to modify global files managed by Portage?

thomas

You can modify the lexer file, but it is also possible to add keywords from the editor settings dialog.

The former is kind of "permanent" insofar as it will be the default, the latter is saved in your config file, i.e. it depends on the current user.

Either works.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."