QDoc: Stop highlighting \badcode as C++
The template generator assumes every \badcode block is C++ and renders
them with C++ syntax highlighting. This produces misleading colouring
that suggests a language the snippet was never written in.
For \badcode, no language needs to be assumed. This change ensures that
QDoc emits these blocks as plain text. Tests are updated accordingly.
Change-Id: I6481b9515336e381bc7039babdf6dc6305795031
Reviewed-by: David Boddie <david.boddie@qt.io>
| commit | 1dc00ea329e3ca13eff196d1719b290f5d2a8fd0 |
| parent | 6a8af3d8a23bb27643f8473aabdc553dc2f0a611 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Tue, 21 Jul 2026 10:10:33 +0000 |
- M src/qdoc/qdoc/src/qdoc/ir/contentbuilder.cpp
- M src/qdoc/qdoc/tests/qdoc/ir/catch_contentbuilder.cpp
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/html/qtcoap-overview.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/html/qtcoaptest-quickmulticastclient-example.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/html/qtcoaptest-quicksecureclient-example.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/html/qtcoaptest-simplecoapclient-example.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qtcoap-overview.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qtcoaptest-quickmulticastclient-example.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qtcoaptest-quicksecureclient-example.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qtcoaptest-simplecoapclient-example.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/html_escaping/expected/template/html-escaping.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qt-target-qml-from-lottie.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qt-target-qml-from-lottie.md