--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -323,7 +323,7 @@
           <td>o <a class="toc" href="#ProvisionalMessages"><span class="provisional">Provisional messages</span></a></td>
 
           <td>o <a class="toc" href="#DeprecatedMessages">Deprecated messages</a></td>
-	  
+
         </tr>
 
         <tr>
@@ -560,7 +560,7 @@
      <code>SCI_RELEASEALLEXTENDEDSTYLES</code> releases any extended styles allocated by the container.
      <code>SCI_ALLOCATEEXTENDEDSTYLES</code> allocates a range of style numbers after the byte style values and returns
      the number of the first allocated style.
-     Ranges for margin and annotation styles should be allocated before calling 
+     Ranges for margin and annotation styles should be allocated before calling
      <a class="message" href="#SCI_MARGINSETSTYLEOFFSET">SCI_MARGINSETSTYLEOFFSET</a> or
      <a class="message" href="#SCI_ANNOTATIONSETSTYLEOFFSET">SCI_ANNOTATIONSETSTYLEOFFSET</a>.</p>
 
@@ -2207,7 +2207,7 @@
 
     <p>Scintilla can handle the major line end conventions <span class="provisional">and, depending on settings and
     the current lexer also support additional Unicode line ends</span>.</p>
-    
+
     <p>Scintilla can interpret any of the Macintosh (\r), Unix (\n) and Windows (\r\n)
     line ends.
     When the user presses the Enter key, one of these line
@@ -2559,7 +2559,7 @@
     <p>The weight or boldness of a font can be set with <code>SCI_STYLESETBOLD</code>
     or <code>SCI_STYLESETWEIGHT</code>. The weight is a number between 1 and 999 with 1 being very light
     and 999 very heavy. While any value can be used, fonts often only support between 2 and 4 weights with three weights
-    being common enough to have symbolic names: 
+    being common enough to have symbolic names:
     <code>SC_WEIGHT_NORMAL</code> (400),
     <code>SC_WEIGHT_SEMIBOLD</code> (600), and
     <code>SC_WEIGHT_BOLD</code> (700).
@@ -2999,10 +2999,10 @@
     <p>
      <b id="SCI_SETMARGINOPTIONS">SCI_SETMARGINOPTIONS(int marginOptions)</b><br />
      <b id="SCI_GETMARGINOPTIONS">SCI_GETMARGINOPTIONS</b><br />
-    Define margin options by enabling appropriate bit flags. At the moment, only one flag is available 
-    <code>SC_MARGINOPTION_SUBLINESELECT</code>=1, which controls how wrapped lines are selected when clicking 
-    on margin in front of them. If <code>SC_MARGINOPTION_SUBLINESELECT</code> is set only sub line of wrapped 
-    line is selected, otherwise whole wrapped line is selected. Margin options are set to 
+    Define margin options by enabling appropriate bit flags. At the moment, only one flag is available
+    <code>SC_MARGINOPTION_SUBLINESELECT</code>=1, which controls how wrapped lines are selected when clicking
+    on margin in front of them. If <code>SC_MARGINOPTION_SUBLINESELECT</code> is set only sub line of wrapped
+    line is selected, otherwise whole wrapped line is selected. Margin options are set to
     <code>SC_MARGINOPTION_NONE</code>=0 by default.
     </p>
 
@@ -3224,7 +3224,7 @@
 
     <p><b id="SCI_GETWORDCHARS">SCI_GETWORDCHARS(&lt;unused&gt;, char *characters)</b><br />
      This fills the characters parameter with all the characters included in words.
-     The characters parameter must be large enough to hold all of the characters. 
+     The characters parameter must be large enough to hold all of the characters.
      If the characters parameter is 0 then the length that should be allocated
      to store the entire set is returned.</p>
 
@@ -3637,7 +3637,7 @@
 
     <p><b id="SCI_MARKERDEFINEPIXMAP">SCI_MARKERDEFINEPIXMAP(int markerNumber, const char
     *xpm)</b><br />
-     Markers can be set to pixmaps with this message. The 
+     Markers can be set to pixmaps with this message. The
      <a class="jump" href="#XPM">XPM format</a> is used for the pixmap.
     Pixmaps use the <code>SC_MARK_PIXMAP</code> marker symbol. </p>
 
@@ -3646,9 +3646,9 @@
     <b id="SCI_RGBAIMAGESETHEIGHT">SCI_RGBAIMAGESETHEIGHT(int height)</b><br />
     <b id="SCI_RGBAIMAGESETSCALE">SCI_RGBAIMAGESETSCALE(int scalePercent)</b><br />
     <b id="SCI_MARKERDEFINERGBAIMAGE">SCI_MARKERDEFINERGBAIMAGE(int markerNumber, const char *pixels)</b><br />
-     Markers can be set to translucent pixmaps with this message. The 
+     Markers can be set to translucent pixmaps with this message. The
      <a class="jump" href="#RGBA">RGBA format</a> is used for the pixmap.
-     The width and height must previously been set with the <code>SCI_RGBAIMAGESETWIDTH</code> and 
+     The width and height must previously been set with the <code>SCI_RGBAIMAGESETWIDTH</code> and
      <code>SCI_RGBAIMAGESETHEIGHT</code> messages.</p>
      <p>A scale factor in percent may be set with <code>SCI_RGBAIMAGESETSCALE</code>. This is useful on OS X with
      a retina display where each display unit is 2 pixels: use a factor of 200 so that each image pixel is dsplayed using a screen pixel.
@@ -4027,7 +4027,7 @@
     <p><b id="SCI_FINDINDICATORSHOW">SCI_FINDINDICATORSHOW(int start, int end)</b><br />
      <b id="SCI_FINDINDICATORFLASH">SCI_FINDINDICATORFLASH(int start, int end)</b><br />
      These two messages show and animate the find indicator. The indicator remains visible with
-     <code>SCI_FINDINDICATORSHOW</code> and fades out after showing for half a second with 
+     <code>SCI_FINDINDICATORSHOW</code> and fades out after showing for half a second with
      <code>SCI_FINDINDICATORFLASH</code>.
      <code>SCI_FINDINDICATORSHOW</code> behaves similarly to the OS X TextEdit and Safari applications
      and is best suited to editing documentation where the search target is often a word.
@@ -4270,10 +4270,10 @@
       Autocompletion list items may display an image as well as text. Each image is first registered with an integer
       type. Then this integer is included in the text of the list separated by a '?' from the text. For example,
       "fclose?2 fopen" displays image 2 before the string "fclose" and no image before "fopen".
-      The images are in either the <a class="jump" href="#XPM">XPM format</a> (<code>SCI_REGISTERIMAGE</code>) or 
+      The images are in either the <a class="jump" href="#XPM">XPM format</a> (<code>SCI_REGISTERIMAGE</code>) or
       <a class="jump" href="#RGBA">RGBA format</a> (<code>SCI_REGISTERRGBAIMAGE</code>).
       For <code>SCI_REGISTERRGBAIMAGE</code> the width and height must previously been set with
-      the <a class="message" href="#SCI_RGBAIMAGESETWIDTH"><code>SCI_RGBAIMAGESETWIDTH</code></a> and 
+      the <a class="message" href="#SCI_RGBAIMAGESETWIDTH"><code>SCI_RGBAIMAGESETWIDTH</code></a> and
       <a class="message" href="#SCI_RGBAIMAGESETHEIGHT"><code>SCI_RGBAIMAGESETHEIGHT</code></a> messages.
       The set of registered images can be cleared with <code>SCI_CLEARREGISTEREDIMAGES</code> and the '?' separator changed
       with <code>SCI_AUTOCSETTYPESEPARATOR</code>.
@@ -4433,7 +4433,7 @@
     <p><b id="SCI_CALLTIPSETPOSITION">SCI_CALLTIPSETPOSITION(bool above)</b><br />
      By default the calltip is displayed below the text, setting above to <code>true</code>
     (1) will display it above the text.</p>
-    
+
 
     <h2 id="KeyboardCommands">Keyboard commands</h2>
 
@@ -4748,7 +4748,7 @@
 
     <p>The modifiers are a combination of zero or more of <code>SCMOD_ALT</code>,
     <code>SCMOD_CTRL</code>, <code>SCMOD_SHIFT</code>, and <code>SCMOD_META</code>.
-    On OS X, the Command key is mapped to <code>SCMOD_CTRL</code> and the Control key to 
+    On OS X, the Command key is mapped to <code>SCMOD_CTRL</code> and the Control key to
     <code>SCMOD_META</code>.
     If you are building a table, you might
     want to use <code>SCMOD_NORM</code>, which has the value 0, to mean no modifiers.</p>
@@ -4851,7 +4851,7 @@
     The Surface IDs are not really used for measurement (<code>bDraw=0</code>) but can be set
     to a bitmap context (created with <code>CGBitmapContextCreate</code>) to avoid runtime warnings.</p>
 
-    <p>On GTK+, the surface IDs to use can be found from the printing context with 
+    <p>On GTK+, the surface IDs to use can be found from the printing context with
     <code>gtk_print_context_get_cairo_context(context)</code>.</p>
 
      <code>chrg.cpMin</code> and <code>chrg.cpMax</code> define the start position and maximum
@@ -5024,7 +5024,7 @@
 
      <p><code>SCI_GETRANGEPOINTER</code> provides direct access to just the
      range requested. The gap is not moved unless it is within the requested range so this call
-     can be faster than <code>SCI_GETCHARACTERPOINTER</code>. 
+     can be faster than <code>SCI_GETCHARACTERPOINTER</code>.
      This can be used by application code that is able to act on blocks of text or ranges of lines.</p>
 
      <p><code>SCI_GETGAPPOSITION</code> returns the current gap position.
@@ -5387,7 +5387,7 @@
       </tbody>
     </table>
      <p></p>
-    
+
     <p><b id="SCI_EXPANDCHILDREN">SCI_EXPANDCHILDREN(int line, int level)</b><br />
     This is used to respond to a change to a line causing its fold level or whether it is a header to change,
     perhaps when adding or removing a '{'.</p>
@@ -6331,7 +6331,7 @@
 <span class="S10">};</span><br />
 </div>
 
-<p>The <code>ILexer</code>, <code>ILexerWithSubStyles</code>, <code>IDocument</code>, and 
+<p>The <code>ILexer</code>, <code>ILexerWithSubStyles</code>, <code>IDocument</code>, and
 <code>IDocumentWithLineEnd</code>  interfaces may be
 expanded in the future with extended versions (<code>ILexer2</code>...).
  The <code>Version</code> method indicates which interface is
@@ -6436,11 +6436,11 @@
 
     <p><b id="SCI_SETIDENTIFIER">SCI_SETIDENTIFIER(int identifier)</b><br />
      <b id="SCI_GETIDENTIFIER">SCI_GETIDENTIFIER</b><br />
-     These two messages set and get the identifier of the Scintilla instance which is included in notifications as the 
-     <code>idFrom</code> field. 
+     These two messages set and get the identifier of the Scintilla instance which is included in notifications as the
+     <code>idFrom</code> field.
      When an application creates multiple Scintilla widgets, this allows the source of each notification to be found.
-     On Windows, this value is initialised in the <code>CreateWindow</code> call and stored as the 
-     <code>GWLP_ID</code> attribute of the window. 
+     On Windows, this value is initialised in the <code>CreateWindow</code> call and stored as the
+     <code>GWLP_ID</code> attribute of the window.
      The value should be small, preferrably less than 16 bits,
      rather than a pointer as some of the functions will only transmit 16 or 32 bits.
     </p>
@@ -7165,17 +7165,17 @@
     <p><b id="SCN_AUTOCCHARDELETED">SCN_AUTOCCHARDELETED</b><br />
      The user deleted a character while autocompletion list was active.
      There is no other information in SCNotification.</p>
-     
+
     <h2 id="Images">Images</h2>
-    
+
     <p>Two formats are supported for images used in margin markers and autocompletion lists, RGBA and XPM.</p>
 
     <h3 id="RGBA">RGBA</h3>
-    
+
     <p>The RGBA format allows translucency with an <a class="jump" href="#alpha">alpha</a>
     value for each pixel. It is simpler than
     <code>XPM</code> and more capable.</p>
-    
+
     <p>The data is a sequence of 4 byte pixel values starting with the pixels for the top line, with the
     leftmost pixel first, then continuing with the pixels for subsequent lines. There is no gap between
     lines for alignment reasons.</p>
@@ -7184,22 +7184,22 @@
     The colour bytes are not premultiplied by the alpha value. That is, a fully red pixel that is
     25% opaque will be [FF, 00, 00, 3F]</p>
 
-    <p>Since the RGBA pixel data does not include any size information the 
-    width and height must previously been set with the 
-    <a class="message" href="#SCI_RGBAIMAGESETWIDTH"><code>SCI_RGBAIMAGESETWIDTH</code></a> and 
+    <p>Since the RGBA pixel data does not include any size information the
+    width and height must previously been set with the
+    <a class="message" href="#SCI_RGBAIMAGESETWIDTH"><code>SCI_RGBAIMAGESETWIDTH</code></a> and
     <a class="message" href="#SCI_RGBAIMAGESETHEIGHT"><code>SCI_RGBAIMAGESETHEIGHT</code></a> messages.</p>
-    
+
     <p>GUI platforms often include functions for reading image file formats like PNG into memory
     in the RGBA form or a similar form.
     If there is no suitable platform support, the <a href="http://lodev.org/lodepng/">LodePNG and picoPNG</a> libraries are small libraries
     for loading and decoding PNG files available under a BSD-style license.</p>
-    
+
     <p>RGBA format is supported on Windows, GTK+ and OS X Cocoa.</p>
 
     <h3 id="XPM">XPM</h3>
-    
-    <p>The XPM format is 
-    <a class="jump" href="http://en.wikipedia.org/wiki/X_PixMap">described here</a>. 
+
+    <p>The XPM format is
+    <a class="jump" href="http://en.wikipedia.org/wiki/X_PixMap">described here</a>.
     Scintilla is only able to handle XPM pixmaps that use one character per pixel with no named colours.
     There may be a completely transparent colour named "None".</p>
     <p>There are two forms of data structure used for XPM images, the first "lines form" format is well suited