Page 1 of 1

Adding support for a language TNSDL

Posted: Tue Apr 06, 2010 7:55 am
by lifsong
Hi, eranif

We have a language named TNSDL, which is very similar like C. I'd like to make Codelite support folding, symbol searching, outlines for it.

Attachment is the wordfile which is used in ultraedit.

Could you help give some hints for implementing supporting of it in CodeLite?

Thanks!

Re: Adding support for a language TNSDL

Posted: Tue Apr 06, 2010 9:43 am
by eranif
I dont think that it is even possible to add a syntax highlight without code changes...

If it is similar to C, you should probably using the C lexer ID for adding syntax highlight as described here:
http://codelite.org/LiteEditor/AddingNewLexer

For adding support for code completion / symbols / outline etc, you will need to change the code.
For codelite be able to collect symbols you should be looking the the function:
TagsManager::RetagFiles (ctags_manager.cpp)

Also:
look the source file: parse_thread.cpp

In short: codelite was designed for C/C++ without deep knowledge in how it works, it will be very hard to change it to work with new language
Eran

Re: Adding support for a language TNSDL

Posted: Tue Apr 06, 2010 10:29 am
by lifsong
Hi,
Thanks for your fast reply and the hints!