News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

lexer list

Started by dmoore, September 07, 2008, 05:41:32 PM

Previous topic - Next topic

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)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

danselmi

Hi

To find all HighlightLanguages I used:
EditorColourSet::GetAllHighlightLanguages
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
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]