News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

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

Started by DarkBug, December 27, 2011, 11:47:02 AM

Previous topic - Next topic

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.
So why don't you just do it? You can setup the lexer(s) as you like.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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.

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

Code (c++) Select

auto obj = new


...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.

DarkBug

@oBFusCATed: Sorry, i don't have time to implement this feature and provide a patch. I just suggest this feature for the next stable release of C::B.

oBFusCATed

I know, but you don't even have time to search the forum, because this is the third or forth topic, about this feature request.

BTW: This is currently just impossible to implement, because scintilla doesn't support it natively (at the time of this post), for clarification search their mailing list/google group.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]