Syntax highlighting for Qt

Kate

Source (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
Score 50.0%
Description:

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

9 years ago

== 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.

milianw

10 years ago

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).

Report

Maxilys

12 years ago

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.

Report

C

montoya

12 years ago

Your request has been executed!

Report

Maxilys

12 years ago

Thanks!

Report

GentooUser

12 years ago

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

Report

accolon

12 years ago

Make sure you restart the Kate application.

Report

GentooUser

12 years ago

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

Report

C

montoya

12 years ago

download cpp.xml version for this problem ;)

Report

GentooUser

12 years ago

I did, but
QHeader for example doesn't highlight

Report

C

montoya

12 years ago

QHeader doesn't exists, maybe QHeaderView??

Report

C

montoya

12 years ago

I fixed this problem (created new file)

Report

s-andy

12 years ago

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

Report

9 years ago

== 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.

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
0.11
updated Jan 06 2010
added Nov 03 2006
downloads 24h
0
page views 24h 3
System Tags addon