This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Functions are purple no matter what I try

Tags: None
(comma "," separated)
User avatar
jeanv
Registered Member
Posts
10
Karma
0
I have the following problem: all functions are highlighted in purple even if I change it in the settings. With the same code in Kate, they are white (everything else is the same) but stay purple in KDevelop.
Can I change it?
flherne
Registered Member
Posts
23
Karma
0
In supported languages, KDevelop highlights elements based on the syntax - functions, classes and methods have a specific colour, each variable is coloured differently.

The actual colours used aren't configurable, but are calculated from the standard editor colours. You can set the intensity with the sliders in Configure -> Language Support -> Semantic Code Highlighting. Setting both sliders to zero will completely disable semantic highlighting and use the basic Kate colours.
User avatar
jeanv
Registered Member
Posts
10
Karma
0
That was it, thanks a lot!
flherne
Registered Member
Posts
23
Karma
0
Why do you want to disable this functionality? It's generally considered one of the most useful features.

If the text colours are unclear or unreadable against the background, there's a bug in the colour calculation.

(If you just strongly dislike the colour purple...that's not really a bug.)
User avatar
eleanorhawk
Registered Member
Posts
2
Karma
0
Old thread but I ran into the same issue.

Kate color schemas are largely informed by aesthetics. If "disliking" purple is "not really a bug", then it sounds like supporting color schemas at all is not really within the scope of KDevelop.

Except it *is*, because color schemes for syntax highlighting are an organizational tool. The relationships of colors are themselves semantic: they map to relationships of token kinds. The whole point is to use color to make code overall easier to read, and that goes farther than just ensuring sufficient lux contrast.

Let's not mistake ergonomics for aesthetic whimsy.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
This topic has been around for decades, so far nobody was sufficiently annoyed by it to do anything about it ;)

One of the challenges is that there's a lot of colors to configure. Another is how to organize that in the settings dialog. Still, certainly a problem that can be solved, so patches welcome ;)


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]