I have written the following code to initialise three variables of the same type on one line. This is valid syntax however the second a third variables don't highlight in green on the first line or when used subsequently in the second line as if CodeLite doesn't recognise this syntax:
double num = 0, small = 0, large = 0;
cout<<num<<small<<large;
Syntax highlighting on variable initialisation
-
- CodeLite Curious
- Posts: 1
- Joined: Mon May 02, 2016 1:09 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Syntax highlighting on variable initialisation
Make sure you have read the HOW TO POST thread