Qt 6.11 is out! See what's new in the release
blog
Markdown codeblock colours in QTextEdit
-
When I am rendering markdown in a QTextEdit using the
QTextEdit.setMarkdown(markdown)it shows the code in the markdown formatting way, however it is colourless. How can I make it render colours as well?Reproducible code: create a
QTextEditand set the markdown ofimport unittest class LevelOneTest(unittest.TestCase): passI can see in the preview [^] there is colour, which is what I want, however in the example below there is no md colour.

-
Hi,
You should add which version of Qt you are using.