Code Languages

Code is marked up as C++ by default:

// Some C++ code:
QWidget *widget = getWidget();

Code can be explicitly marked up as C++ with the Cpp language:

// Some C++ code:
QWidget *widget = getWidget();

QML code can be requested with the QML language:

// Some QML code:
Item {
    id: my_item
}

Plain text is shown if the text language is used:

// Some C++ code:
QWidget *widget = getWidget();

// Some QML code:
Item {
    id: my_item
}

The case of the specified language is not important:

// Some C++ code:
QWidget *widget = getWidget();

Languages that QDoc does not handle are accepted but not processed if the language was declared in the languages configuration variable:

def fn():
    pass

A warning will be generated if the language is unknown and not listed in the languages configuration variable:

10 PRINT "Hello world!"
20 GOTO 10