Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
lexer list
(1/1)
dmoore:
does someone know the easiest way to programatically obtain a complete list of available lexers (name and id) from a plugin? I'm working on a syntax checking plugin and need to be able to set up a custom command for each lexer (I'd prefer not to hard code the list).
btw, you can see the current state of the plugin by checking out the source (works for python and maybe php if they are in your path):
svn checkout http://svn.berlios.de/svnroot/repos/cbilplugin/trunk/codecheck
(rick: i realize this is prob not what you had in mind)
danselmi:
Hi
To find all HighlightLanguages I used:
--- Code: ---EditorColourSet::GetAllHighlightLanguages
--- End code ---
PS: One lexer is used from different HighlightLanguages. So I recommend you to
check for the HighlightLanguage and not the lexer.
(for example the CPP lexer is also used for script languages)
regards daniel
Navigation
[0] Message Index
Go to full version