add QCodeEditor

This commit is contained in:
Carl Philipp Klemm 2025-10-13 12:40:46 +02:00
parent bccee9bd36
commit 2f3069a388
316 changed files with 98016 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#pragma once
// Qt
#include <QRegularExpression>
#include <QString>
struct QHighlightBlockRule
{
QHighlightBlockRule() :
startPattern(),
endPattern(),
formatName()
{}
QHighlightBlockRule(QRegularExpression start, QRegularExpression end, QString format) :
startPattern(std::move(start)),
endPattern(std::move(end)),
formatName(std::move(format))
{}
QRegularExpression startPattern;
QRegularExpression endPattern;
QString formatName;
};