diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-11-15 09:25:29 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-11-15 09:25:29 +1100 |
| commit | a14f5340b58421aa8a107deca0eefabe5de5d3fd (patch) | |
| tree | e12b5cd84619b36ed299d669968a0a7717a8c131 /doc/ScintillaDoc.html | |
| parent | 3b72fe93906e4c6b8c800cf2c7b986bc2c2c89a2 (diff) | |
| download | scintilla-mirror-a14f5340b58421aa8a107deca0eefabe5de5d3fd.tar.gz | |
Backport: Feature [feature-requests:#1316] Allow target to have virtual space.
Backport of changeset 7768:5d73aa55a6ee.
Diffstat (limited to 'doc/ScintillaDoc.html')
| -rw-r--r-- | doc/ScintillaDoc.html | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index e407689c1..3efb7257f 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -708,10 +708,15 @@ struct Sci_TextRange { <code>SCI_SEARCHINTARGET</code> such as <code>SCFIND_MATCHCASE</code>, <code>SCFIND_WHOLEWORD</code>, <code>SCFIND_WORDSTART</code>, and <code>SCFIND_REGEXP</code> can be set with <code>SCI_SETSEARCHFLAGS</code>.</p> - <code><a class="message" href="#SCI_SETTARGETSTART">SCI_SETTARGETSTART(position start)</a><br /> + <code> + <a class="message" href="#SCI_SETTARGETSTART">SCI_SETTARGETSTART(position start)</a><br /> <a class="message" href="#SCI_GETTARGETSTART">SCI_GETTARGETSTART → position</a><br /> + <a class="message" href="#SCI_SETTARGETSTARTVIRTUALSPACE">SCI_SETTARGETSTARTVIRTUALSPACE(position space)</a><br /> + <a class="message" href="#SCI_GETTARGETSTARTVIRTUALSPACE">SCI_GETTARGETSTARTVIRTUALSPACE → position</a><br /> <a class="message" href="#SCI_SETTARGETEND">SCI_SETTARGETEND(position end)</a><br /> <a class="message" href="#SCI_GETTARGETEND">SCI_GETTARGETEND → position</a><br /> + <a class="message" href="#SCI_SETTARGETENDVIRTUALSPACE">SCI_SETTARGETENDVIRTUALSPACE(position space)</a><br /> + <a class="message" href="#SCI_GETTARGETENDVIRTUALSPACE">SCI_GETTARGETENDVIRTUALSPACE → position</a><br /> <a class="message" href="#SCI_SETTARGETRANGE">SCI_SETTARGETRANGE(position start, position end)</a><br /> <a class="message" href="#SCI_TARGETFROMSELECTION">SCI_TARGETFROMSELECTION</a><br /> <a class="message" href="#SCI_TARGETWHOLEDOCUMENT">SCI_TARGETWHOLEDOCUMENT</a><br /> @@ -726,13 +731,22 @@ struct Sci_TextRange { <p><b id="SCI_SETTARGETSTART">SCI_SETTARGETSTART(position start)</b><br /> <b id="SCI_GETTARGETSTART">SCI_GETTARGETSTART → position</b><br /> + <b id="SCI_SETTARGETSTARTVIRTUALSPACE">SCI_SETTARGETSTARTVIRTUALSPACE(position space)</b><br /> + <b id="SCI_GETTARGETSTARTVIRTUALSPACE">SCI_GETTARGETSTARTVIRTUALSPACE → position</b><br /> <b id="SCI_SETTARGETEND">SCI_SETTARGETEND(position end)</b><br /> <b id="SCI_GETTARGETEND">SCI_GETTARGETEND → position</b><br /> + <b id="SCI_SETTARGETENDVIRTUALSPACE">SCI_SETTARGETENDVIRTUALSPACE(position space)</b><br /> + <b id="SCI_GETTARGETENDVIRTUALSPACE">SCI_GETTARGETENDVIRTUALSPACE → position</b><br /> <b id="SCI_SETTARGETRANGE">SCI_SETTARGETRANGE(position start, position end)</b><br /> These functions set and return the start and end of the target. When searching you can set start greater than end to find the last matching text in the - target rather than the first matching text. The target is also set by a successful + target rather than the first matching text. + Setting a target position with <code>SCI_SETTARGETSTART</code>, <code>SCI_SETTARGETEND</code>, or <code>SCI_SETTARGETRANGE</code> + sets the virtual space to 0. + The target is also set by a successful <code>SCI_SEARCHINTARGET</code>.</p> + <p>The virtual space of the target range can be set and retrieved with the corresponding <code>...VIRTUALSPACE</code> + methods. This allows text to be inserted in virtual space more easily.</p> <p><b id="SCI_TARGETFROMSELECTION">SCI_TARGETFROMSELECTION</b><br /> Set the target start and end to the start and end positions of the selection.</p> |
