User forums > General (but related to Code::Blocks)

Suggestion: syntax highlighting for classes and objects in C++

(1/2) > >>

DarkBug:
Hello,

i like to suggest syntax highlighting for classes and objects in C++. It would increase the readability.

Regards,
DarkBug

MortenMacFly:

--- Quote from: DarkBug on December 27, 2011, 11:47:02 am ---i like to suggest syntax highlighting for classes and objects in C++. It would increase the readability.

--- End quote ---
So why don't you just do it? You can setup the lexer(s) as you like.

DarkBug:
If you think of the User keyword function in Settings->Editor...->Syntax highlighting, then that would mean i have to add a keyword everytime i create an object of a class.

oBFusCATed:
I guess you're talking about semantic highlighting and C::B could not do it at the moment.

What Morten suggested is that if you want this feature, so much you can implement
it yourself and then provide a patch, so we can integrate it.

ptDev:

--- Quote from: oBFusCATed on December 29, 2011, 10:19:57 am ---I guess you're talking about semantic highlighting and C::B could not do it at the moment.

What Morten suggested is that if you want this feature, so much you can implement
it yourself and then provide a patch, so we can integrate it.

--- End quote ---

Come to think about it, semantic code completion would be nice too.
If, for example, one writes:


--- Code: (c++) ---auto obj = new

--- End code ---

...and then hits ctrl+space, it would be cool if C::B provides us a list of basic types, structs, classes, etc.
But there still is an ongoing effort in refactoring the code completion, so maybe a bit of patience, even when submitting patches, is advised.

Navigation

[0] Message Index

[#] Next page

Go to full version