Important: Please read the Qt Code of Conduct -

Adding support for a new programming language to Qt Creator

  • Hello all,

    I'm a new user of Qt Creator, so please forgive me if I'm asking questions for which there is a known answer.

    How can I add support for new programming languages to Qt Creator? I'm thinking of initially just enabling syntax highlighting and indentation support, but later extending that to support for build and debugging tools.

    The descriptions on indicate that syntax highlighting files should be written as for the KDE text editor Kate, but as the page linked to is from 2005 I'd like to confirm if that's still correct.

    The language I'm particularly interested in adding support for is D: From old posts on the D language forums, there were some efforts about 3 years back to add D support to Qt Creator, but so far as I can tell nothing has come of it .... ?

    I'd like to make sure D is well supported, so any advice on how to get started and how to ensure that any work I do is incorporated into the main project would be very much appreciated.

    Thanks & best wishes,

     -- Joe

  • I note that there is D syntax highlighting among the generic highlighter definitions available, but it's 5 years old -- and auto-indentation certainly does not work correctly.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Your best shot would be to download QtCreator's code and check the highlighting/code formatting code.

    You might also be interested in the qtcreator mailing list to talk about that

    Happy coding !

  • Thanks -- I'll do that :-)

Log in to reply