Markdown codeblock colours in QTextEdit
Solved
General and Desktop
-
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
QTextEdit
and set the markdown ofimport unittest class LevelOneTest(unittest.TestCase): pass
I 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.