Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

QML files opened with gedit don't have syntax highlighting. Is there a package providing a gtksourceview lang.spec file for QML? If not, has anyone written a lang.spec than can be installed locally?

share|improve this question
I still haven't found anything for gedit, but it's worth mentioning that there is QML highlighting for Sublime Text 2/3: – andrewsomething Sep 5 '13 at 20:09
bug reported o/ asfsf r wer wer wer wr werwer – user418184 Jun 9 '15 at 0:18

I know this doesn't directly answer your question, but there are several other editors that do support QML syntax.

The best option in my opinion is to use Qt Creator's (the Ubuntu SDK application) editor component. In addition to QML syntax highlighting, it also as context-sensitive completion.

Qt Creator's editor component

On the other hand, if all you want is a simple text editor that offers QML syntax highlighting, KDE's Kate is a good solution that I use. While it doesn't integrate perfectly with Unity, it still is a nice editor.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.