Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » syntax coloring not coloring comments
syntax coloring not coloring comments [message #146643] Wed, 08 June 2005 22:18 Go to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
The syntax coloring for my .cpp files doesn't work completely.
keywords such as if for and include etc are correct (bold and reddish)
"things in between quotes" are in blue, which is also correct
but comments are not green, as they are shown in the C/C++ editor
preferences

What is wrong?
Re: syntax coloring not coloring comments [message #146840 is a reply to message #146643] Tue, 14 June 2005 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: devin_steffler.ca.ibm.com

Comments are green and working well for me. What version of CDT are you
using? Can you post an example of some code with comments that aren't
highlighted properly?

Thanks,
Devin

"al" <allelopath@hotmail.com> wrote in message
news:c4cf016e96303a15ffcbf32cbe941f94$1@www.eclipse.org...
> The syntax coloring for my .cpp files doesn't work completely.
> keywords such as if for and include etc are correct (bold and reddish)
> "things in between quotes" are in blue, which is also correct
> but comments are not green, as they are shown in the C/C++ editor
> preferences
>
> What is wrong?
>
Re: syntax coloring not coloring comments [message #146847 is a reply to message #146840] Tue, 14 June 2005 14:42 Go to previous messageGo to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
The basic comment things:

/**
*
* @memo constructor
* this should be blue
*
*/

// or just one line like this should be green

version is 2.0.1

other languages are correct (Java, Fortran)


Devin Steffler wrote:

> Comments are green and working well for me. What version of CDT are you
> using? Can you post an example of some code with comments that aren't
> highlighted properly?

> Thanks,
> Devin

> "al" <allelopath@hotmail.com> wrote in message
> news:c4cf016e96303a15ffcbf32cbe941f94$1@www.eclipse.org...
>> The syntax coloring for my .cpp files doesn't work completely.
>> keywords such as if for and include etc are correct (bold and reddish)
>> "things in between quotes" are in blue, which is also correct
>> but comments are not green, as they are shown in the C/C++ editor
>> preferences
>>
>> What is wrong?
>>
Re: syntax coloring not coloring comments [message #146970 is a reply to message #146847] Wed, 15 June 2005 17:52 Go to previous message
Eclipse UserFriend
Originally posted by: devin_steffler.ca.ibm.com

Al,

Try upgrading to a newer version of CDT. Currently the CDT 3.0 M6 build is
available on the website. I just tried your example code in CDT from the
latest in CVS and the comments are highlighted with a green colour just
fine.

Hope this helps,
Devin

"Al" <allelopath@hotmail.com> wrote in message
news:fca84b0ee14cbb884dee38d55d446f2f$1@www.eclipse.org...
> The basic comment things:
>
> /**
> *
> * @memo constructor
> * this should be blue
> *
> */
>
> // or just one line like this should be green
>
> version is 2.0.1
>
> other languages are correct (Java, Fortran)
>
>
> Devin Steffler wrote:
>
> > Comments are green and working well for me. What version of CDT are you
> > using? Can you post an example of some code with comments that aren't
> > highlighted properly?
>
> > Thanks,
> > Devin
>
> > "al" <allelopath@hotmail.com> wrote in message
> > news:c4cf016e96303a15ffcbf32cbe941f94$1@www.eclipse.org...
> >> The syntax coloring for my .cpp files doesn't work completely.
> >> keywords such as if for and include etc are correct (bold and reddish)
> >> "things in between quotes" are in blue, which is also correct
> >> but comments are not green, as they are shown in the C/C++ editor
> >> preferences
> >>
> >> What is wrong?
> >>
>
Previous Topic:Where is the binary ?
Next Topic:NooB Question
Goto Forum:
  


Current Time: Mon Jul 22 00:23:01 GMT 2024

Powered by FUDForum. Page generated in 0.03676 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top