The very useful addon that displays a call tip colour-swatch when hovering over 
a legit colour hex value, is unfortunately a little overambitious when it 
parses text for a hash character followed by a string containing letters A-F, 
it seems. 

For textual contexts in which misinterpretations become frequent this can be 
quiet annoying. Specifically, whenever the cursor "touches" an occurrence of a 
#define-directive (in a C-file), a lightblue calltip swatch keep popping up, 
blocking the text! The bug here, of course, is the fact that the string #DEF... 
is simply interpreted as a hex value.

I don't know how this functionality of the plug-in can be made to robustly 
distinguish between "correct" hex strings and C-like directives, for example. 
Perhaps an option to check for file type, so it doesn't even try parsing files 
with certain filename extensions like .c, .h., .cpp, .ino etc?

![colour-info 
bug](https://user-images.githubusercontent.com/646714/211163044-cab163a6-ad2f-49f6-a486-0f3969c51fd5.png)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1216
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/[email protected]>

Reply via email to