use custom font to display line breaks

This commit is contained in:
Roy Qu 2024-04-15 16:39:49 +08:00
parent 3552077d5c
commit 45f4047d82
4 changed files with 8 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

View File

@ -20,8 +20,8 @@ namespace QSynedit {
const QSet<QChar> WordBreakChars{'.', ',', ';', ':', const QSet<QChar> WordBreakChars{'.', ',', ';', ':',
'"', '\'', '!', '?', '[', ']', '(', ')', '{', '}', '^', '-', '=', '+', '"', '\'', '!', '?', '[', ']', '(', ')', '{', '}', '^', '-', '=', '+',
'-', '*', '/', '\\', '|'}; '-', '*', '/', '\\', '|'};
const QChar TabGlyph(0x2192); const QString TabGlyph{"\U000FFFFC"};
const QChar SpaceGlyph(0x02FD); const QString SpaceGlyph{"\U000FFFFD"};
const QChar LineBreakGlyph(0x21A9); const QString LineBreakGlyph{"\U000FFFFB"};
const QChar SoftBreakGlyph(0x2193); const QString SoftBreakGlyph{"\U000FFFFA"};
} }

View File

@ -22,10 +22,10 @@
namespace QSynedit { namespace QSynedit {
extern const QSet<QChar> WordBreakChars; extern const QSet<QChar> WordBreakChars;
extern const QChar SpaceGlyph; extern const QString SpaceGlyph;
extern const QChar TabGlyph; extern const QString TabGlyph;
extern const QChar LineBreakGlyph; extern const QString LineBreakGlyph;
extern const QChar SoftBreakGlyph; extern const QString SoftBreakGlyph;
// names for token attributes // names for token attributes
#define SYNS_AttrAssembler "Assembler" #define SYNS_AttrAssembler "Assembler"