How to specify a *.inl file is the same as a *.cpp file

General questions regarding the usage of CodeLite
Tyler
CodeLite Curious
Posts: 3
Joined: Thu Mar 15, 2012 9:10 am
Genuine User: Yes
IDE Question: C++
Contact:

How to specify a *.inl file is the same as a *.cpp file

Post by Tyler »

Hello,

I have a templated class where the header is separate from the implementation (per course requirements). The implementation extension is .inl

I've gotten CodeLite to highlight the syntax correctly as if it's a c++ file (settings->syntax->c++->default->File Extensions->;*.inl). How can I get everything else within CodeLite to treat the file as a c++ file?

Thanks,
Tyler
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: How to specify a *.inl file is the same as a *.cpp file

Post by jfouche »

Got o : Settings => Syntax Highlght
Select C++
In file extension, add the *.inl
Jérémie
Tyler
CodeLite Curious
Posts: 3
Joined: Thu Mar 15, 2012 9:10 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to specify a *.inl file is the same as a *.cpp file

Post by Tyler »

Thanks for the reply, but I've already done that. (read the second part of my post).

I'm trying to get code completion and other features to work. Any ideas?
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: How to specify a *.inl file is the same as a *.cpp file

Post by jfouche »

Oups, sorry

You can goto settings > Tags settings > CTags > advanced and add the .inl extension to the list
Jérémie
Tyler
CodeLite Curious
Posts: 3
Joined: Thu Mar 15, 2012 9:10 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to specify a *.inl file is the same as a *.cpp file

Post by Tyler »

Great! That's what I wanted (it worked).

Thanks for your help.
Post Reply