Syntax highlighting for Qt

Kate

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
Copy the file cpp.xml to ~/.kde/share/apps/katepart/syntax/
Last changelog:

== 0.11 ==
Add new Qt 4.6.0 classes.

== 0.10 ==
Add new Qt 4.5.0 classes.

== 0.9 ==
Add new Qt 4.4.0 rc1 classes.

== 0.8 ==
Add new Qt 4.3.0 final classes and all macros.

== 0.7 ==
Add new Qt 4.3.0 beta classes.

== 0.6 ==
Complete Qt 3 and Qt 4 series.

== 0.5 ==
Add all Qt 3.3 classes.

== 0.4 ==
Add "Qt 4.2" and "standard C++" syntax highlighting file for *.cpp and *.h sources.

== 0.3 ==
Add "Qt" keyword for much enum (example Qt::SolidPattern).

== 0.2 ==
Now this file is not replace standard c++ highlighting, but is a new highlighting file, that include also standard c++.

== 0.1 ==
This is a qt highlighting.


Ratings & Comments

12 Comments

milianw

Hi there! Would you care to cleanup this file so it can be pushed upstream into KDE SVN? What I would like to see: - name file qt4.xml - use IncludeRules (see Kate documentation on Syntax files or http://kate-editor.org/article/writing_a_kate_highlighting_xml_file) to include C++, so no duplication is taking place - only add qt specific keywords on top of that => would make the file lot smaller and simpler => changes in cpp.xml won't have to be ported to qt4.xml If you have questions, contact me e.g. in IRC (milian on freenode, like in #kate).

Maxilys

It would be perfect if you added the (few) missing Qt3 QObjects/QWidgets so that the highlighting works for both Qt3 and Qt4. AFAIK, only a few very common widgets like QSpinWidget, QHeader, QPopupMenu, and propably some others, won't get highlighted. I think that in these times of transition, a syntax highlighting scheme for both Qt's would make everybody happy.

montoya

Your request has been executed!

Maxilys

Thanks!

GentooUser

Does not work for me, kate don't highlight Qt code. May be i did something wrong, priority = 9 for sources/qt ?

accolon

Make sure you restart the Kate application.

GentooUser

I did, but QHeader for example doesn't highlight

montoya

QHeader doesn't exists, maybe QHeaderView??

GentooUser

I doesn't by .cpp file, in a .h file highlight works great. In .cpp file emit, slot and signal highlight but Qt:: etc doesn't

montoya

download cpp.xml version for this problem ;)

montoya

I fixed this problem (created new file)

s-andy

You highlighter replaces standard c++ highlighter that is distributed with kate. You should not do that!

Pling
0 Affiliates
Details
license
version 0.11
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Kate from montoya:

Syntax highlighting for Java
montoya
last update date: 18 years ago

Score 5.0

Other Kate:

Monokai Kate Color Scheme
mmstick
last update date: 11 years ago

Score 6.1

Blue Night Kate Color Scheme
mmstick
last update date: 11 years ago

Score 6.1

dcrBlackGold-Kate/Kwrite Theme
drankinatty
last update date: 15 years ago

Score 5.0

DarkLum - Kate low contrast dark calm
genjix
last update date: 15 years ago

Score 5.0

Nightsky Kate Color Scheme
Zeroangel
last update date: 11 years ago

Score 7.0

Rdark - A Kate Syntax Highlighting Theme
pento
last update date: 17 years ago

Score 4.7



System Tags