[scintilla] [patch] added SCI_SETTABDRAWMODE(SCTD_CONTROLCHAR)

1 view
Skip to first unread message

Robin Haberkorn

unread,
11:31 AM (10 hours ago) 11:31 AM
to scintilla...@googlegroups.com
Dear hackers,

here's yet another patch which adds SCI_SETTABDRAWMODE(SCTD_CONTROLCHAR).
In this tab draw mode, tabs are handled like other control characters
and are rendered by their chracter representation.

It's again motivated by SciTECO's command line and syntax highlighting
needs where ASCII 9 is an actual insertion command instead of an
identation no-op.
Perhaps this is potentially useful for other languages as well where
tabs have special meaning beyond identation.

(And yes, it would also be useful for the "Scintilla - the hex editor"
use case, but that's not really doable due to the slow layout algorithm
on excessively long lines.)

Best regards,
Robin
0002-added-SCI_SETTABDRAWMODE-SCTD_CONTROLCHAR.patch
signature.asc

Neil Hodgson

unread,
4:42 PM (4 hours ago) 4:42 PM
to scintilla...@googlegroups.com
Robin Haberkorn:

> here's yet another patch which adds SCI_SETTABDRAWMODE(SCTD_CONTROLCHAR).
> In this tab draw mode, tabs are handled like other control characters
> and are rendered by their chracter representation.

This doesn't reset layout so may show lengthy or truncated [HT].
https://www.scintilla.org/TabBlob.png

Neil
Reply all
Reply to author
Forward
0 new messages