Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Creator 4.3.1 code highlighting for custom files not working

Tags:

qt-creator

I am using Qt Creator and opening TypeScript files using it but the code highlighting is not working. I used the "Import existing project" option to open a project that contains some .ts files, opened one of the files and the "a highlight definition was not found" error. Then I added *.ts to the patterns of the application/javascript MIME type but this didn't make the highlighting work. Then I tried renaming the file from filename.ts to filename.js but this also didn't make the highlighting work. How do I get the IDE to highlight my ts files?

Update: it seems that the IDE is highlighting ts files as html files.

like image 463
Lawand Avatar asked Nov 03 '17 10:11

Lawand


1 Answers

It seems that this is a bug in the IDE. I submitted a bug report: https://bugreports.qt.io/browse/QTCREATORBUG-19449

like image 112
Lawand Avatar answered Oct 19 '22 18:10

Lawand