Is there a way to loop through each block in a text document/qplaintextedit
-
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.
@Fuchsiaff Hi,
Something like this maybe :for (QTextBlock it = doc->begin(); it != doc->end(); it = it.next()) cout << it.text().toStdString() << endl;