diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-02-02 14:34:55 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-02-02 14:34:55 +1100 |
| commit | 6fb4db4d6e160550a0889e209174b86e94bfe672 (patch) | |
| tree | df35b50ed6448f772c2288990c3f6332b6243d49 /doc/ScintillaDoc.html | |
| parent | 391226f67e1260eb77e7d3122d43281aa6ccd5ab (diff) | |
| download | scintilla-mirror-6fb4db4d6e160550a0889e209174b86e94bfe672.tar.gz | |
Backport: Implement SC_DOCUMENTOPTION_STYLES_NONE.
Backport of changeset 6448:431b814a54a6.
Diffstat (limited to 'doc/ScintillaDoc.html')
| -rw-r--r-- | doc/ScintillaDoc.html | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index a1d46b1fa..08b91778c 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -116,7 +116,7 @@ <h1>Scintilla Documentation</h1> - <p>Last edited 31 January 2018 NH</p> + <p>Last edited 1 February 2018 NH</p> <p>There is <a class="jump" href="Design.html">an overview of the internal design of Scintilla</a>.<br /> @@ -5720,9 +5720,38 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ to allocate once rather than rely on the buffer growing as data is added. If <code>SCI_CREATEDOCUMENT</code> fails then 0 is returned.</p> - <p>The <code class="parameter">documentOption</code> argument may be used in future versions - to choose between different document capabilities which affect memory allocation and performance. - The only valid value for now is <code>SC_DOCUMENTOPTION_DEFAULT</code> (0).</p> + <p id="documentOption">The <code class="parameter">documentOption</code> argument + chooses between different document capabilities which affect memory allocation and performance with + <code>SC_DOCUMENTOPTION_DEFAULT</code> (0) choosing standard options. + <code>SC_DOCUMENTOPTION_STYLES_NONE</code> (1) stops allocation of memory to style characters + which saves significant memory, often 40% with the whole document treated as being style 0. + Lexers may still produce visual styling by using indicators.</p> + + <table class="standard" summary="Document options"> + <tbody> + <tr> + <th align="left">Symbol</th> + <th align="left">Value</th> + <th align="left">Effect</th> + </tr> + </tbody> + + <tbody valign="top"> + + <tr> + <td align="left">SC_DOCUMENTOPTION_DEFAULT</td> + <td align="left">0</td> + <td align="left">Standard behaviour</td> + </tr> + + <tr> + <td align="left">SC_DOCUMENTOPTION_STYLES_NONE</td> + <td align="left">1</td> + <td align="left">Stop allocation of memory for styles and treat all text as style 0.</td> + </tr> + + </tbody> + </table> <p><b id="SCI_ADDREFDOCUMENT">SCI_ADDREFDOCUMENT(<unused>, document *doc)</b><br /> This increases the reference count of a document by 1. If you want to replace the current @@ -5765,9 +5794,8 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ to allocate once rather than rely on the buffer growing as data is added. If <code>SCI_CREATELOADER</code> fails then 0 is returned.</p> - <p>The <code class="parameter">documentOption</code> argument may be used in future versions - to choose between different document capabilities which affect memory allocation and performance. - The only valid value for now is <code>SC_DOCUMENTOPTION_DEFAULT</code> (0).</p> + <p>The <code class="parameter">documentOption</code> argument + is described in the <a class="seealso" href="#documentOption"><code>SCI_CREATEDOCUMENT</code></a> section.</p> <h4>ILoader</h4> |
