
Syntax highlighting for Qt
Source (link to git-repo or to original if based on someone elses unmodified work):
== 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
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).
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.
Your request has been executed!
Thanks!
Does not work for me, kate don't highlight Qt code. May be i did something wrong, priority = 9 for sources/qt ?
Make sure you restart the Kate application.
I did, but QHeader for example doesn't highlight
QHeader doesn't exists, maybe QHeaderView??
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
download cpp.xml version for this problem ;)
I fixed this problem (created new file)
You highlighter replaces standard c++ highlighter that is distributed with kate. You should not do that!