Author Topic: Lexer  (Read 2076 times)

Offline moloh

  • Multiple posting newcomer
  • *
  • Posts: 42
Lexer
« on: May 13, 2006, 03:03:06 am »
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?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Lexer
« Reply #1 on: May 13, 2006, 12:58:21 pm »
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."