kdevelop variable highlighting has only 11 colors

jay kdevelop at jxx.sk
Fri Apr 29 15:28:58 BST 2011


Hi,

I don't want to post bug report on this, because I don't know if its a
bug or feature :)

In php if I have a lot of local variables test file like this :
<?php
$v01 = "";  $v02 = ""; $v03 = ""; $v04 = ""; .... and so on

I can distinct only 10 unique colors, and one dark green as a default color.

If I'm correct
/kdevplatform/language/highlighting/colorcache.cpp

uint totalColorInterpolationStepCount = 6;
uint interpolationWaypoints[] = {0xff0000, 0xff9900, 0x00ff00, 0x00aaff,
0x0000ff, 0xaa00ff};
//Do less steps when interpolating to/from green: Green is very
dominant, and different mixed green tones are hard to distinguish(and
always seem green).
uint interpolationLengths[] = {0xff, 0xff, 0xbb, 0xbb, 0xbb, 0xff};

uint totalGeneratedColors = 10;




Is there some reason to allow only 10, or could it be changed ?
Or maybe configurable, or bind with colorization level ?


I have experimented a bit with the values, thou I haven't yet completely
understood the mathematics behind it.

I think that this setting gets me a set of colors, that i'm very good
able to read and distinguish
uint interpolationLengths[] = {0xff, 0xff, 0x99, 0xbb, 0x66, 0xff};
uint totalGeneratedColors = 20;





jay




More information about the KDevelop mailing list