It seems [hiding text blocks](https://doc.qt.io/qt-6/qtextblock.html#setVisible) is possible in `QTextDocument` otherwise [text replacement](https://github.com/CapelliC/foldingQTextEdit/tree/master) is still possible code folding helps a lot navigating code when it is long and complex
It seems hiding text blocks is possible in
QTextDocumentotherwise text replacement is still possible
code folding helps a lot navigating code when it is long and complex