From a2940fd23daf6f8d82c9c821de5c40077ce0da84 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 8 Aug 2014 10:01:55 +1000 Subject: Implement explicit tab stops per line. From Nick Gravgaard. --- doc/ScintillaDoc.html | 15 +++++++++++++++ doc/ScintillaHistory.html | 4 ++++ 2 files changed, 19 insertions(+) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 9cc5cae18..689d9c949 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3380,6 +3380,10 @@ struct Sci_TextToFind { syntax. Tabs are normally used in editors to insert a tab character or to pad text with spaces up to the next tab.

+

When Scintilla is laying out a section of text, text after a tab character will usually be + displayed at the next multiple of TABWIDTH columns from the left. However, it is also possible + to explicitly set tabstops in pixels for each line.

+

Scintilla can be set to treat tab and backspace in the white space at the start of a line in a special way: inserting a tab indents the line to the next indent position rather than just inserting a tab at the current character position and backspace unindents the line rather than @@ -3387,6 +3391,9 @@ struct Sci_TextToFind { you to generate code.

SCI_SETTABWIDTH(int widthInChars)
SCI_GETTABWIDTH
+ SCI_CLEARTABSTOPS(int line)
+ SCI_ADDTABSTOP(int line, int x)
+ SCI_GETNEXTTABSTOP(int line, int x)
SCI_SETUSETABS(bool useTabs)
SCI_GETUSETABS
SCI_SETINDENT(int widthInChars)
@@ -3413,6 +3420,14 @@ struct Sci_TextToFind { character in STYLE_DEFAULT. The default tab width is 8 characters. There are no limits on tab sizes, but values less than 1 or large values may have undesirable effects.

+

SCI_CLEARTABSTOPS(int line)
+ SCI_ADDTABSTOP(int line, int x)
+ SCI_GETNEXTTABSTOP(int line, int x)
+ SCI_CLEARTABSTOPS clears explicit tabstops on a line. SCI_ADDTABSTOP + adds an explicit tabstop at the specified distance from the left (in pixels), and + SCI_GETNEXTTABSTOP gets the next explicit tabstop position, or zero if there + aren't any.

+

SCI_SETUSETABS(bool useTabs)
SCI_GETUSETABS
SCI_SETUSETABS determines whether indentation should be created out of a mixture diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 6cefeab13..3bb58f509 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -452,6 +452,7 @@ johnsonj Vicente + Nick Gravgaard

@@ -483,6 +484,9 @@ Bug #1532.

  • + Explicit tab stops may be set for each line. +
  • +
  • On Windows, when using Korean input methods, IME composition is moved from a separate window into the Scintilla window.
  • -- cgit v1.2.3