aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-05-14 03:26:53 +0000
committernyamatongwe <unknown>2001-05-14 03:26:53 +0000
commit466ec638ae719c9256286862355b33a39c7f136b (patch)
tree130d3d877cd2b55ce719a4dec978ce3bc8e8b3fe /include
parent94eccf378241a5cefbfe7cec6734694cc85ee8b8 (diff)
downloadscintilla-mirror-466ec638ae719c9256286862355b33a39c7f136b.tar.gz
Merged patch from Michele to add ability for tab key to perform indent when
selection is empty and within indentation and for backspace to unindent in the same circumstances.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h4
-rw-r--r--include/Scintilla.iface12
2 files changed, 16 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index a19d2a1b5..daca5102a 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -313,6 +313,10 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_TOGGLEFOLD 2231
#define SCI_ENSUREVISIBLE 2232
#define SCI_SETFOLDFLAGS 2233
+#define SCI_SETTABINDENTS 2260
+#define SCI_GETTABINDENTS 2261
+#define SCI_SETBACKSPACEUNINDENTS 2262
+#define SCI_GETBACKSPACEUNINDENTS 2263
#define SCI_LINEDOWN 2300
#define SCI_LINEDOWNEXTEND 2301
#define SCI_LINEUP 2302
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 4aaea15d4..604c96b2c 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -822,6 +822,18 @@ fun void EnsureVisible=2232(int line,)
# Set some debugging options for folding
fun void SetFoldFlags=2233(int flags,)
+# Sets whether a tab pressed when caret is within indentation indents
+set void SetTabIndents=2260(bool tabIndents,)
+
+# Does a tab pressed when caret is within indentation indent?
+get bool GetTabIndents=2261(,)
+
+# Sets whether a backspace pressed when caret is within indentation unindents
+set void SetBackSpaceUnIndents=2262(bool bsUnIndents,)
+
+# Does a backspace pressed when caret is within indentation unindent?
+get bool GetBackSpaceUnIndents=2263(,)
+
## Start of key messages
# Move caret down one line.
fun void LineDown=2300(,)