Adding support for a language TNSDL

Discussion about CodeLite development process and patches
lifsong
CodeLite Curious
Posts: 2
Joined: Tue Apr 06, 2010 7:48 am
Genuine User: Yes
IDE Question: C++
Contact:

Adding support for a language TNSDL

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Adding support for a language TNSDL

Post 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
Make sure you have read the HOW TO POST thread
lifsong
CodeLite Curious
Posts: 2
Joined: Tue Apr 06, 2010 7:48 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Adding support for a language TNSDL

Post by lifsong »

Hi,
Thanks for your fast reply and the hints!
Post Reply