Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is there a way to loop through each block in a text document/qplaintextedit
Fuchsiaff last edited by
I am trying to write my own syntax highlighter because the one provided by Qt5 doesn't let me highlight only certain blocks, it highlights all the blocks and that will cause performance issues with big files.
VRonin last edited by VRonin
This post is deleted!
Gojir4 last edited by
Something like this maybe :
for (QTextBlock it = doc->begin(); it != doc->end(); it = it.next()) cout << it.text().toStdString() << endl;