You are not logged in.

#1 2013-06-14 17:52:02

Grant
Member
From: Italy
Registered: 2012-12-15
Posts: 246

[SOLVED] Kate doesn't highlight what it should

Hello everybody

I've noticed that Kate, doesn't highlight something that should. For example, look at this C++ file: http://tinypic.com/r/2nvxcid/5
Some keywords, like class, return, public and private, don't get shown. The same thing happens in KDevelop.
Thanks for helping, I wish you a nice day.

Grant.

Last edited by Grant (2013-06-16 09:56:03)

Offline

#2 2013-06-15 09:32:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: [SOLVED] Kate doesn't highlight what it should

While kate does try to determine automagically what kind fo file you're editing, this doesn't always work perfect.

for example, kate has 3 settings for c++ files :  C++ , C++11 , C++11/qt4 .

Check "Tools > Highlighting > Sources"  to see what kind of file kate thinks you are working on.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2013-06-15 10:22:01

Grant
Member
From: Italy
Registered: 2012-12-15
Posts: 246

Re: [SOLVED] Kate doesn't highlight what it should

Checked, and Kate is right, it's C++. I found the problem: keywords had the same color of normal words, then I've changed their color to red.
But now I've discovered that bold doesn't work. Check out this screen: http://tinypic.com/r/2r4l98x/5
Though bold is checked, it don't get shown however.

Offline

#4 2013-06-15 11:25:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Kate doesn't highlight what it should

What font are you using for the code window?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-06-16 09:55:52

Grant
Member
From: Italy
Registered: 2012-12-15
Posts: 246

Re: [SOLVED] Kate doesn't highlight what it should

I didn't know that my Monospace font was the problem. I've choosen another, and now it looks like even better.
Thank you Trilby and Lone_Wolf.
Have a nice day.

Offline

Board footer

Powered by FluxBB