Editor Object
=============

The Editor class, with the instance name of ``Npp.editor`` (or normally simply ``editor``) represents
the Scintilla component of Notepad++.  Scintilla is the "edit" component, the place where text is 
entered and altered.  `Scintilla <http://www.scintilla.org>`_ is well documented, and Python Script 
allows you to call any of the Scintilla functions in a *Pythonised* way.  

``Npp.editor`` (or ``editor``) always refers to the active document.  To switch to another document 
(or open a new one, etc), use the ``notepad`` object.


The arguments to the functions are therefore slightly different to the original Scintilla arguments, effectively
simplified by Python.  

For example:
	`SCI_ADDTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_ADDTEXT>`_ has the arguments::
	
		SCI_ADDTEXT(int length, const char *text)
	
	In Python, that just becomes::
		
		editor.addText(text)
		
	Likewise, return parameters are converted to return values. So
	`SCI_GETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTEXT>`_ has the arguments::
		
		SCI_GETTEXT(int length, char *text)
		
	In Python, that becomes::
	
		text = editor.getText()
		
	
		
The comments for each function have been taken directly from Scintilla, so occassionally you may see reference to 
a parameter that doesn't exist. I'm sure you'll cope :) 

Colours are a tuple of ``(red, green, blue)`` where each of ``red``, ``green``, and ``blue`` is between 0 and 255.

There are some `Helper Methods`_ discussed at the end, that perform some common functions with Scintilla.
For instance, searching and replacing, regular expressions, replacing and deleting lines and so on.

Scintilla Methods
-----------------
.. class:: Editor

.. method:: Editor.getCharacterPointer() -> str

   Gets a copy of the text of the document, without first allowing Scintilla to make it's copy of it.
   In practice, that means it does exactly the same as ``Editor.getText``, however, if you have the possibility
   of the user interfering with the document _whilst_ ``getCharacterPointer()`` is running, then it's safer to use
   getText().  On larger documents, getCharacterPointer() could be noticable quicker.

   See Scintilla documentation for `SCI_GETCHARACTERPOINTER <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCHARACTERPOINTER>`_

   
.. This file from this point on is Autogenerated.  Edit CreateWrapper.py to change the contents /* ++Autogenerated ---- */
.. method:: Editor.addText(text) -> int

   Add text to the document at current position.

   See Scintilla documentation for `SCI_ADDTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_ADDTEXT>`_

.. method:: Editor.addStyledText(c) -> int

   Add array of cells to document.

   See Scintilla documentation for `SCI_ADDSTYLEDTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_ADDSTYLEDTEXT>`_

.. method:: Editor.insertText(pos, text)

   Insert string at a position.

   See Scintilla documentation for `SCI_INSERTTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_INSERTTEXT>`_

.. method:: Editor.changeInsertion(text) -> int

   Change the text that is being inserted in response to SC_MOD_INSERTCHECK

   See Scintilla documentation for `SCI_CHANGEINSERTION <http://www.scintilla.org/ScintillaDoc.html#SCI_CHANGEINSERTION>`_

.. method:: Editor.clearAll()

   Delete all text in the document.

   See Scintilla documentation for `SCI_CLEARALL <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARALL>`_

.. method:: Editor.deleteRange(pos, deleteLength)

   Delete a range of text in the document.

   See Scintilla documentation for `SCI_DELETERANGE <http://www.scintilla.org/ScintillaDoc.html#SCI_DELETERANGE>`_

.. method:: Editor.clearDocumentStyle()

   Set all style bytes to 0, remove all folding information.

   See Scintilla documentation for `SCI_CLEARDOCUMENTSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARDOCUMENTSTYLE>`_

.. method:: Editor.getLength() -> int

   Returns the number of bytes in the document.

   See Scintilla documentation for `SCI_GETLENGTH <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLENGTH>`_

.. method:: Editor.getCharAt(pos) -> int

   Returns the character byte at the position.

   See Scintilla documentation for `SCI_GETCHARAT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCHARAT>`_

.. method:: Editor.getCurrentPos() -> int

   Returns the position of the caret.

   See Scintilla documentation for `SCI_GETCURRENTPOS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCURRENTPOS>`_

.. method:: Editor.getAnchor() -> int

   Returns the position of the opposite end of the selection to the caret.

   See Scintilla documentation for `SCI_GETANCHOR <http://www.scintilla.org/ScintillaDoc.html#SCI_GETANCHOR>`_

.. method:: Editor.getStyleAt(pos) -> int

   Returns the style byte at the position.

   See Scintilla documentation for `SCI_GETSTYLEAT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSTYLEAT>`_

.. method:: Editor.redo()

   Redoes the next action on the undo history.

   See Scintilla documentation for `SCI_REDO <http://www.scintilla.org/ScintillaDoc.html#SCI_REDO>`_

.. method:: Editor.setUndoCollection(collectUndo)

   Choose between collecting actions into the undo
   history and discarding them.

   See Scintilla documentation for `SCI_SETUNDOCOLLECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETUNDOCOLLECTION>`_

.. method:: Editor.selectAll()

   Select all the text in the document.

   See Scintilla documentation for `SCI_SELECTALL <http://www.scintilla.org/ScintillaDoc.html#SCI_SELECTALL>`_

.. method:: Editor.setSavePoint()

   Remember the current position in the undo history as the position
   at which the document was saved.

   See Scintilla documentation for `SCI_SETSAVEPOINT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSAVEPOINT>`_

.. method:: Editor.getStyledText(start, end) -> tuple

   Retrieve a buffer of cells.
   Returns the number of bytes in the buffer not including terminating NULs.

   See Scintilla documentation for `SCI_GETSTYLEDTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSTYLEDTEXT>`_

.. method:: Editor.canRedo() -> bool

   Are there any redoable actions in the undo history?

   See Scintilla documentation for `SCI_CANREDO <http://www.scintilla.org/ScintillaDoc.html#SCI_CANREDO>`_

.. method:: Editor.markerLineFromHandle(handle) -> int

   Retrieve the line number at which a particular marker is located.

   See Scintilla documentation for `SCI_MARKERLINEFROMHANDLE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERLINEFROMHANDLE>`_

.. method:: Editor.markerDeleteHandle(handle)

   Delete a marker.

   See Scintilla documentation for `SCI_MARKERDELETEHANDLE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERDELETEHANDLE>`_

.. method:: Editor.getUndoCollection() -> bool

   Is undo history being collected?

   See Scintilla documentation for `SCI_GETUNDOCOLLECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETUNDOCOLLECTION>`_

.. method:: Editor.getViewWS() -> int

   Are white space characters currently visible?
   Returns one of SCWS_* constants.

   See Scintilla documentation for `SCI_GETVIEWWS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETVIEWWS>`_

.. method:: Editor.setViewWS(viewWS)

   Make white space characters invisible, always visible or visible outside indentation.

   See Scintilla documentation for `SCI_SETVIEWWS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETVIEWWS>`_

.. method:: Editor.positionFromPoint(x, y) -> int

   Find the position from a point within the window.

   See Scintilla documentation for `SCI_POSITIONFROMPOINT <http://www.scintilla.org/ScintillaDoc.html#SCI_POSITIONFROMPOINT>`_

.. method:: Editor.positionFromPointClose(x, y) -> int

   Find the position from a point within the window but return
   INVALID_POSITION if not close to text.

   See Scintilla documentation for `SCI_POSITIONFROMPOINTCLOSE <http://www.scintilla.org/ScintillaDoc.html#SCI_POSITIONFROMPOINTCLOSE>`_

.. method:: Editor.gotoLine(line)

   Set caret to start of a line and ensure it is visible.

   See Scintilla documentation for `SCI_GOTOLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_GOTOLINE>`_

.. method:: Editor.gotoPos(pos)

   Set caret to a position and ensure it is visible.

   See Scintilla documentation for `SCI_GOTOPOS <http://www.scintilla.org/ScintillaDoc.html#SCI_GOTOPOS>`_

.. method:: Editor.setAnchor(posAnchor)

   Set the selection anchor to a position. The anchor is the opposite
   end of the selection from the caret.

   See Scintilla documentation for `SCI_SETANCHOR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETANCHOR>`_

.. method:: Editor.getCurLine() -> str

   Retrieve the text of the line containing the caret.
   Returns the index of the caret on the line.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETCURLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCURLINE>`_

.. method:: Editor.getEndStyled() -> int

   Retrieve the position of the last correctly styled character.

   See Scintilla documentation for `SCI_GETENDSTYLED <http://www.scintilla.org/ScintillaDoc.html#SCI_GETENDSTYLED>`_

.. method:: Editor.convertEOLs(eolMode)

   Convert all line endings in the document to one mode.

   See Scintilla documentation for `SCI_CONVERTEOLS <http://www.scintilla.org/ScintillaDoc.html#SCI_CONVERTEOLS>`_

.. method:: Editor.getEOLMode() -> int

   Retrieve the current end of line mode - one of CRLF, CR, or LF.

   See Scintilla documentation for `SCI_GETEOLMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETEOLMODE>`_

.. method:: Editor.setEOLMode(eolMode)

   Set the current end of line mode.

   See Scintilla documentation for `SCI_SETEOLMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETEOLMODE>`_

.. method:: Editor.startStyling(pos, mask)

   Set the current styling position to pos and the styling mask to mask.
   The styling mask can be used to protect some bits in each styling byte from modification.

   See Scintilla documentation for `SCI_STARTSTYLING <http://www.scintilla.org/ScintillaDoc.html#SCI_STARTSTYLING>`_

.. method:: Editor.setStyling(length, style)

   Change style from current styling position for length characters to a style
   and move the current styling position to after this newly styled segment.

   See Scintilla documentation for `SCI_SETSTYLING <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSTYLING>`_

.. method:: Editor.getBufferedDraw() -> bool

   Is drawing done first into a buffer or direct to the screen?

   See Scintilla documentation for `SCI_GETBUFFEREDDRAW <http://www.scintilla.org/ScintillaDoc.html#SCI_GETBUFFEREDDRAW>`_

.. method:: Editor.setBufferedDraw(buffered)

   If drawing is buffered then each line of text is drawn into a bitmap buffer
   before drawing it to the screen to avoid flicker.

   See Scintilla documentation for `SCI_SETBUFFEREDDRAW <http://www.scintilla.org/ScintillaDoc.html#SCI_SETBUFFEREDDRAW>`_

.. method:: Editor.setTabWidth(tabWidth)

   Change the visible size of a tab to be a multiple of the width of a space character.

   See Scintilla documentation for `SCI_SETTABWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTABWIDTH>`_

.. method:: Editor.getTabWidth() -> int

   Retrieve the visible size of a tab.

   See Scintilla documentation for `SCI_GETTABWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTABWIDTH>`_

.. method:: Editor.clearTabStops(line)

   Clear explicit tabstops on a line.

   See Scintilla documentation for `SCI_CLEARTABSTOPS <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARTABSTOPS>`_

.. method:: Editor.addTabStop(line, x)

   Add an explicit tab stop for a line.

   See Scintilla documentation for `SCI_ADDTABSTOP <http://www.scintilla.org/ScintillaDoc.html#SCI_ADDTABSTOP>`_

.. method:: Editor.getNextTabStop(line, x) -> int

   Find the next explicit tab stop position on a line after a position.

   See Scintilla documentation for `SCI_GETNEXTTABSTOP <http://www.scintilla.org/ScintillaDoc.html#SCI_GETNEXTTABSTOP>`_

.. method:: Editor.setCodePage(codePage)

   Set the code page used to interpret the bytes of the document as characters.
   The SC_CP_UTF8 value can be used to enter Unicode mode.

   See Scintilla documentation for `SCI_SETCODEPAGE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCODEPAGE>`_

.. method:: Editor.getIMEInteraction() -> int

   Is the IME displayed in a winow or inline?

   See Scintilla documentation for `SCI_GETIMEINTERACTION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETIMEINTERACTION>`_

.. method:: Editor.setIMEInteraction(imeInteraction)

   Choose to display the the IME in a winow or inline.

   See Scintilla documentation for `SCI_SETIMEINTERACTION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETIMEINTERACTION>`_

.. method:: Editor.markerDefine(markerNumber, markerSymbol)

   Set the symbol used for a particular marker number.

   See Scintilla documentation for `SCI_MARKERDEFINE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERDEFINE>`_

.. method:: Editor.markerSetFore(markerNumber, fore)

   Set the foreground colour used for a particular marker number.

   See Scintilla documentation for `SCI_MARKERSETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERSETFORE>`_

.. method:: Editor.markerSetBack(markerNumber, back)

   Set the background colour used for a particular marker number.

   See Scintilla documentation for `SCI_MARKERSETBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERSETBACK>`_

.. method:: Editor.markerSetBackSelected(markerNumber, back)

   Set the background colour used for a particular marker number when its folding block is selected.

   See Scintilla documentation for `SCI_MARKERSETBACKSELECTED <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERSETBACKSELECTED>`_

.. method:: Editor.markerEnableHighlight(enabled)

   Enable/disable highlight for current folding bloc (smallest one that contains the caret)

   See Scintilla documentation for `SCI_MARKERENABLEHIGHLIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERENABLEHIGHLIGHT>`_

.. method:: Editor.markerAdd(line, markerNumber) -> int

   Add a marker to a line, returning an ID which can be used to find or delete the marker.

   See Scintilla documentation for `SCI_MARKERADD <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERADD>`_

.. method:: Editor.markerDelete(line, markerNumber)

   Delete a marker from a line.

   See Scintilla documentation for `SCI_MARKERDELETE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERDELETE>`_

.. method:: Editor.markerDeleteAll(markerNumber)

   Delete all markers with a particular number from all lines.

   See Scintilla documentation for `SCI_MARKERDELETEALL <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERDELETEALL>`_

.. method:: Editor.markerGet(line) -> int

   Get a bit mask of all the markers set on a line.

   See Scintilla documentation for `SCI_MARKERGET <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERGET>`_

.. method:: Editor.markerNext(lineStart, markerMask) -> int

   Find the next line at or after lineStart that includes a marker in mask.
   Return -1 when no more lines.

   See Scintilla documentation for `SCI_MARKERNEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERNEXT>`_

.. method:: Editor.markerPrevious(lineStart, markerMask) -> int

   Find the previous line before lineStart that includes a marker in mask.

   See Scintilla documentation for `SCI_MARKERPREVIOUS <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERPREVIOUS>`_

.. method:: Editor.markerDefinePixmap(markerNumber, pixmap)

   Define a marker from a pixmap.

   See Scintilla documentation for `SCI_MARKERDEFINEPIXMAP <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERDEFINEPIXMAP>`_

.. method:: Editor.markerAddSet(line, set)

   Add a set of markers to a line.

   See Scintilla documentation for `SCI_MARKERADDSET <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERADDSET>`_

.. method:: Editor.markerSetAlpha(markerNumber, alpha)

   Set the alpha used for a marker that is drawn in the text area, not the margin.

   See Scintilla documentation for `SCI_MARKERSETALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERSETALPHA>`_

.. method:: Editor.setMarginTypeN(margin, marginType)

   Set a margin to be either numeric or symbolic.

   See Scintilla documentation for `SCI_SETMARGINTYPEN <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINTYPEN>`_

.. method:: Editor.getMarginTypeN(margin) -> int

   Retrieve the type of a margin.

   See Scintilla documentation for `SCI_GETMARGINTYPEN <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINTYPEN>`_

.. method:: Editor.setMarginWidthN(margin, pixelWidth)

   Set the width of a margin to a width expressed in pixels.

   See Scintilla documentation for `SCI_SETMARGINWIDTHN <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINWIDTHN>`_

.. method:: Editor.getMarginWidthN(margin) -> int

   Retrieve the width of a margin in pixels.

   See Scintilla documentation for `SCI_GETMARGINWIDTHN <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINWIDTHN>`_

.. method:: Editor.setMarginMaskN(margin, mask)

   Set a mask that determines which markers are displayed in a margin.

   See Scintilla documentation for `SCI_SETMARGINMASKN <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINMASKN>`_

.. method:: Editor.getMarginMaskN(margin) -> int

   Retrieve the marker mask of a margin.

   See Scintilla documentation for `SCI_GETMARGINMASKN <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINMASKN>`_

.. method:: Editor.setMarginSensitiveN(margin, sensitive)

   Make a margin sensitive or insensitive to mouse clicks.

   See Scintilla documentation for `SCI_SETMARGINSENSITIVEN <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINSENSITIVEN>`_

.. method:: Editor.getMarginSensitiveN(margin) -> bool

   Retrieve the mouse click sensitivity of a margin.

   See Scintilla documentation for `SCI_GETMARGINSENSITIVEN <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINSENSITIVEN>`_

.. method:: Editor.setMarginCursorN(margin, cursor)

   Set the cursor shown when the mouse is inside a margin.

   See Scintilla documentation for `SCI_SETMARGINCURSORN <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINCURSORN>`_

.. method:: Editor.getMarginCursorN(margin) -> int

   Retrieve the cursor shown in a margin.

   See Scintilla documentation for `SCI_GETMARGINCURSORN <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINCURSORN>`_

.. method:: Editor.styleClearAll()

   Clear all the styles and make equivalent to the global default style.

   See Scintilla documentation for `SCI_STYLECLEARALL <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLECLEARALL>`_

.. method:: Editor.styleSetFore(style, fore)

   Set the foreground colour of a style.

   See Scintilla documentation for `SCI_STYLESETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETFORE>`_

.. method:: Editor.styleSetBack(style, back)

   Set the background colour of a style.

   See Scintilla documentation for `SCI_STYLESETBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETBACK>`_

.. method:: Editor.styleSetBold(style, bold)

   Set a style to be bold or not.

   See Scintilla documentation for `SCI_STYLESETBOLD <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETBOLD>`_

.. method:: Editor.styleSetItalic(style, italic)

   Set a style to be italic or not.

   See Scintilla documentation for `SCI_STYLESETITALIC <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETITALIC>`_

.. method:: Editor.styleSetSize(style, sizePoints)

   Set the size of characters of a style.

   See Scintilla documentation for `SCI_STYLESETSIZE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETSIZE>`_

.. method:: Editor.styleSetFont(style, fontName)

   Set the font of a style.

   See Scintilla documentation for `SCI_STYLESETFONT <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETFONT>`_

.. method:: Editor.styleSetEOLFilled(style, filled)

   Set a style to have its end of line filled or not.

   See Scintilla documentation for `SCI_STYLESETEOLFILLED <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETEOLFILLED>`_

.. method:: Editor.styleResetDefault()

   Reset the default style to its state at startup

   See Scintilla documentation for `SCI_STYLERESETDEFAULT <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLERESETDEFAULT>`_

.. method:: Editor.styleSetUnderline(style, underline)

   Set a style to be underlined or not.

   See Scintilla documentation for `SCI_STYLESETUNDERLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETUNDERLINE>`_

.. method:: Editor.styleGetFore(style) -> tuple

   Get the foreground colour of a style.

   See Scintilla documentation for `SCI_STYLEGETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETFORE>`_

.. method:: Editor.styleGetBack(style) -> tuple

   Get the background colour of a style.

   See Scintilla documentation for `SCI_STYLEGETBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETBACK>`_

.. method:: Editor.styleGetBold(style) -> bool

   Get is a style bold or not.

   See Scintilla documentation for `SCI_STYLEGETBOLD <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETBOLD>`_

.. method:: Editor.styleGetItalic(style) -> bool

   Get is a style italic or not.

   See Scintilla documentation for `SCI_STYLEGETITALIC <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETITALIC>`_

.. method:: Editor.styleGetSize(style) -> int

   Get the size of characters of a style.

   See Scintilla documentation for `SCI_STYLEGETSIZE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETSIZE>`_

.. method:: Editor.styleGetFont(style) -> str

   Get the font of a style.
   Returns the length of the fontName
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_STYLEGETFONT <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETFONT>`_

.. method:: Editor.styleGetEOLFilled(style) -> bool

   Get is a style to have its end of line filled or not.

   See Scintilla documentation for `SCI_STYLEGETEOLFILLED <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETEOLFILLED>`_

.. method:: Editor.styleGetUnderline(style) -> bool

   Get is a style underlined or not.

   See Scintilla documentation for `SCI_STYLEGETUNDERLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETUNDERLINE>`_

.. method:: Editor.styleGetCase(style) -> int

   Get is a style mixed case, or to force upper or lower case.

   See Scintilla documentation for `SCI_STYLEGETCASE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETCASE>`_

.. method:: Editor.styleGetCharacterSet(style) -> int

   Get the character get of the font in a style.

   See Scintilla documentation for `SCI_STYLEGETCHARACTERSET <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETCHARACTERSET>`_

.. method:: Editor.styleGetVisible(style) -> bool

   Get is a style visible or not.

   See Scintilla documentation for `SCI_STYLEGETVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETVISIBLE>`_

.. method:: Editor.styleGetChangeable(style) -> bool

   Get is a style changeable or not (read only).
   Experimental feature, currently buggy.

   See Scintilla documentation for `SCI_STYLEGETCHANGEABLE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETCHANGEABLE>`_

.. method:: Editor.styleGetHotSpot(style) -> bool

   Get is a style a hotspot or not.

   See Scintilla documentation for `SCI_STYLEGETHOTSPOT <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETHOTSPOT>`_

.. method:: Editor.styleSetCase(style, caseForce)

   Set a style to be mixed case, or to force upper or lower case.

   See Scintilla documentation for `SCI_STYLESETCASE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETCASE>`_

.. method:: Editor.styleSetSizeFractional(style, caseForce)

   Set the size of characters of a style. Size is in points multiplied by 100.

   See Scintilla documentation for `SCI_STYLESETSIZEFRACTIONAL <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETSIZEFRACTIONAL>`_

.. method:: Editor.styleGetSizeFractional(style) -> int

   Get the size of characters of a style in points multiplied by 100

   See Scintilla documentation for `SCI_STYLEGETSIZEFRACTIONAL <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETSIZEFRACTIONAL>`_

.. method:: Editor.styleSetWeight(style, weight)

   Set the weight of characters of a style.

   See Scintilla documentation for `SCI_STYLESETWEIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETWEIGHT>`_

.. method:: Editor.styleGetWeight(style) -> int

   Get the weight of characters of a style.

   See Scintilla documentation for `SCI_STYLEGETWEIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLEGETWEIGHT>`_

.. method:: Editor.styleSetCharacterSet(style, characterSet)

   Set the character set of the font in a style.

   See Scintilla documentation for `SCI_STYLESETCHARACTERSET <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETCHARACTERSET>`_

.. method:: Editor.styleSetHotSpot(style, hotspot)

   Set a style to be a hotspot or not.

   See Scintilla documentation for `SCI_STYLESETHOTSPOT <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETHOTSPOT>`_

.. method:: Editor.setSelFore(useSetting, fore)

   Set the foreground colour of the main and additional selections and whether to use this setting.

   See Scintilla documentation for `SCI_SETSELFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELFORE>`_

.. method:: Editor.setSelBack(useSetting, back)

   Set the background colour of the main and additional selections and whether to use this setting.

   See Scintilla documentation for `SCI_SETSELBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELBACK>`_

.. method:: Editor.getSelAlpha() -> int

   Get the alpha of the selection.

   See Scintilla documentation for `SCI_GETSELALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELALPHA>`_

.. method:: Editor.setSelAlpha(alpha)

   Set the alpha of the selection.

   See Scintilla documentation for `SCI_SETSELALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELALPHA>`_

.. method:: Editor.getSelEOLFilled() -> bool

   Is the selection end of line filled?

   See Scintilla documentation for `SCI_GETSELEOLFILLED <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELEOLFILLED>`_

.. method:: Editor.setSelEOLFilled(filled)

   Set the selection to have its end of line filled or not.

   See Scintilla documentation for `SCI_SETSELEOLFILLED <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELEOLFILLED>`_

.. method:: Editor.setCaretFore(fore)

   Set the foreground colour of the caret.

   See Scintilla documentation for `SCI_SETCARETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETFORE>`_

.. method:: Editor.assignCmdKey(km, msg)

   When key+modifier combination km is pressed perform msg.

   See Scintilla documentation for `SCI_ASSIGNCMDKEY <http://www.scintilla.org/ScintillaDoc.html#SCI_ASSIGNCMDKEY>`_

.. method:: Editor.clearCmdKey(km)

   When key+modifier combination km is pressed do nothing.

   See Scintilla documentation for `SCI_CLEARCMDKEY <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARCMDKEY>`_

.. method:: Editor.clearAllCmdKeys()

   Drop all key mappings.

   See Scintilla documentation for `SCI_CLEARALLCMDKEYS <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARALLCMDKEYS>`_

.. method:: Editor.setStylingEx(styles) -> int

   Set the styles for a segment of the document.

   See Scintilla documentation for `SCI_SETSTYLINGEX <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSTYLINGEX>`_

.. method:: Editor.styleSetVisible(style, visible)

   Set a style to be visible or not.

   See Scintilla documentation for `SCI_STYLESETVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETVISIBLE>`_

.. method:: Editor.getCaretPeriod() -> int

   Get the time in milliseconds that the caret is on and off.

   See Scintilla documentation for `SCI_GETCARETPERIOD <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETPERIOD>`_

.. method:: Editor.setCaretPeriod(periodMilliseconds)

   Get the time in milliseconds that the caret is on and off. 0 = steady on.

   See Scintilla documentation for `SCI_SETCARETPERIOD <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETPERIOD>`_

.. method:: Editor.setWordChars(characters)

   Set the set of characters making up words for when moving or selecting by word.
   First sets defaults like SetCharsDefault.

   See Scintilla documentation for `SCI_SETWORDCHARS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWORDCHARS>`_

.. method:: Editor.getWordChars() -> str

   Get the set of characters making up words for when moving or selecting by word.
   Returns the number of characters

   See Scintilla documentation for `SCI_GETWORDCHARS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWORDCHARS>`_

.. method:: Editor.beginUndoAction()

   Start a sequence of actions that is undone and redone as a unit.
   May be nested.

   See Scintilla documentation for `SCI_BEGINUNDOACTION <http://www.scintilla.org/ScintillaDoc.html#SCI_BEGINUNDOACTION>`_

.. method:: Editor.endUndoAction()

   End a sequence of actions that is undone and redone as a unit.

   See Scintilla documentation for `SCI_ENDUNDOACTION <http://www.scintilla.org/ScintillaDoc.html#SCI_ENDUNDOACTION>`_

.. method:: Editor.indicSetStyle(indic, style)

   Set an indicator to plain, squiggle or TT.

   See Scintilla documentation for `SCI_INDICSETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETSTYLE>`_

.. method:: Editor.indicGetStyle(indic) -> int

   Retrieve the style of an indicator.

   See Scintilla documentation for `SCI_INDICGETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETSTYLE>`_

.. method:: Editor.indicSetFore(indic, fore)

   Set the foreground colour of an indicator.

   See Scintilla documentation for `SCI_INDICSETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETFORE>`_

.. method:: Editor.indicGetFore(indic) -> tuple

   Retrieve the foreground colour of an indicator.

   See Scintilla documentation for `SCI_INDICGETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETFORE>`_

.. method:: Editor.indicSetUnder(indic, under)

   Set an indicator to draw under text or over(default).

   See Scintilla documentation for `SCI_INDICSETUNDER <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETUNDER>`_

.. method:: Editor.indicGetUnder(indic) -> bool

   Retrieve whether indicator drawn under or over text.

   See Scintilla documentation for `SCI_INDICGETUNDER <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETUNDER>`_

.. method:: Editor.indicSetHoverStyle(indic, style)

   Set a hover indicator to plain, squiggle or TT.

   See Scintilla documentation for `SCI_INDICSETHOVERSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETHOVERSTYLE>`_

.. method:: Editor.indicGetHoverStyle(indic) -> int

   Retrieve the hover style of an indicator.

   See Scintilla documentation for `SCI_INDICGETHOVERSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETHOVERSTYLE>`_

.. method:: Editor.indicSetHoverFore(indic, fore)

   Set the foreground hover colour of an indicator.

   See Scintilla documentation for `SCI_INDICSETHOVERFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETHOVERFORE>`_

.. method:: Editor.indicGetHoverFore(indic) -> tuple

   Retrieve the foreground hover colour of an indicator.

   See Scintilla documentation for `SCI_INDICGETHOVERFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETHOVERFORE>`_

.. method:: Editor.indicSetFlags(indic, flags)

   Set the attributes of an indicator.

   See Scintilla documentation for `SCI_INDICSETFLAGS <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETFLAGS>`_

.. method:: Editor.indicGetFlags(indic) -> int

   Retrieve the attributes of an indicator.

   See Scintilla documentation for `SCI_INDICGETFLAGS <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETFLAGS>`_

.. method:: Editor.setWhitespaceFore(useSetting, fore)

   Set the foreground colour of all whitespace and whether to use this setting.

   See Scintilla documentation for `SCI_SETWHITESPACEFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWHITESPACEFORE>`_

.. method:: Editor.setWhitespaceBack(useSetting, back)

   Set the background colour of all whitespace and whether to use this setting.

   See Scintilla documentation for `SCI_SETWHITESPACEBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWHITESPACEBACK>`_

.. method:: Editor.setWhitespaceSize(size)

   Set the size of the dots used to mark space characters.

   See Scintilla documentation for `SCI_SETWHITESPACESIZE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWHITESPACESIZE>`_

.. method:: Editor.getWhitespaceSize() -> int

   Get the size of the dots used to mark space characters.

   See Scintilla documentation for `SCI_GETWHITESPACESIZE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWHITESPACESIZE>`_

.. method:: Editor.setStyleBits(bits)

   Divide each styling byte into lexical class bits (default: 5) and indicator
   bits (default: 3). If a lexer requires more than 32 lexical states, then this
   is used to expand the possible states.

   See Scintilla documentation for `SCI_SETSTYLEBITS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSTYLEBITS>`_

.. method:: Editor.getStyleBits() -> int

   Retrieve number of bits in style bytes used to hold the lexical state.

   See Scintilla documentation for `SCI_GETSTYLEBITS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSTYLEBITS>`_

.. method:: Editor.setLineState(line, state)

   Used to hold extra styling information for each line.

   See Scintilla documentation for `SCI_SETLINESTATE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLINESTATE>`_

.. method:: Editor.getLineState(line) -> int

   Retrieve the extra styling information for a line.

   See Scintilla documentation for `SCI_GETLINESTATE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINESTATE>`_

.. method:: Editor.getMaxLineState() -> int

   Retrieve the last line number that has line state.

   See Scintilla documentation for `SCI_GETMAXLINESTATE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMAXLINESTATE>`_

.. method:: Editor.getCaretLineVisible() -> bool

   Is the background of the line containing the caret in a different colour?

   See Scintilla documentation for `SCI_GETCARETLINEVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETLINEVISIBLE>`_

.. method:: Editor.setCaretLineVisible(show)

   Display the background of the line containing the caret in a different colour.

   See Scintilla documentation for `SCI_SETCARETLINEVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETLINEVISIBLE>`_

.. method:: Editor.getCaretLineBack() -> tuple

   Get the colour of the background of the line containing the caret.

   See Scintilla documentation for `SCI_GETCARETLINEBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETLINEBACK>`_

.. method:: Editor.setCaretLineBack(back)

   Set the colour of the background of the line containing the caret.

   See Scintilla documentation for `SCI_SETCARETLINEBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETLINEBACK>`_

.. method:: Editor.styleSetChangeable(style, changeable)

   Set a style to be changeable or not (read only).
   Experimental feature, currently buggy.

   See Scintilla documentation for `SCI_STYLESETCHANGEABLE <http://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETCHANGEABLE>`_

.. method:: Editor.autoCShow(lenEntered, itemList)

   Display a auto-completion list.
   The lenEntered parameter indicates how many characters before
   the caret should be used to provide context.

   See Scintilla documentation for `SCI_AUTOCSHOW <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSHOW>`_

.. method:: Editor.autoCCancel()

   Remove the auto-completion list from the screen.

   See Scintilla documentation for `SCI_AUTOCCANCEL <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCCANCEL>`_

.. method:: Editor.autoCActive() -> bool

   Is there an auto-completion list visible?

   See Scintilla documentation for `SCI_AUTOCACTIVE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCACTIVE>`_

.. method:: Editor.autoCPosStart() -> int

   Retrieve the position of the caret when the auto-completion list was displayed.

   See Scintilla documentation for `SCI_AUTOCPOSSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCPOSSTART>`_

.. method:: Editor.autoCComplete()

   User has selected an item so remove the list and insert the selection.

   See Scintilla documentation for `SCI_AUTOCCOMPLETE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCCOMPLETE>`_

.. method:: Editor.autoCStops(characterSet)

   Define a set of character that when typed cancel the auto-completion list.

   See Scintilla documentation for `SCI_AUTOCSTOPS <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSTOPS>`_

.. method:: Editor.autoCSetSeparator(separatorCharacter)

   Change the separator character in the string setting up an auto-completion list.
   Default is space but can be changed if items contain space.

   See Scintilla documentation for `SCI_AUTOCSETSEPARATOR <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETSEPARATOR>`_

.. method:: Editor.autoCGetSeparator() -> int

   Retrieve the auto-completion list separator character.

   See Scintilla documentation for `SCI_AUTOCGETSEPARATOR <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETSEPARATOR>`_

.. method:: Editor.autoCSelect(text)

   Select the item in the auto-completion list that starts with a string.

   See Scintilla documentation for `SCI_AUTOCSELECT <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSELECT>`_

.. method:: Editor.autoCSetCancelAtStart(cancel)

   Should the auto-completion list be cancelled if the user backspaces to a
   position before where the box was created.

   See Scintilla documentation for `SCI_AUTOCSETCANCELATSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETCANCELATSTART>`_

.. method:: Editor.autoCGetCancelAtStart() -> bool

   Retrieve whether auto-completion cancelled by backspacing before start.

   See Scintilla documentation for `SCI_AUTOCGETCANCELATSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETCANCELATSTART>`_

.. method:: Editor.autoCSetFillUps(characterSet)

   Define a set of characters that when typed will cause the autocompletion to
   choose the selected item.

   See Scintilla documentation for `SCI_AUTOCSETFILLUPS <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETFILLUPS>`_

.. method:: Editor.autoCSetChooseSingle(chooseSingle)

   Should a single item auto-completion list automatically choose the item.

   See Scintilla documentation for `SCI_AUTOCSETCHOOSESINGLE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETCHOOSESINGLE>`_

.. method:: Editor.autoCGetChooseSingle() -> bool

   Retrieve whether a single item auto-completion list automatically choose the item.

   See Scintilla documentation for `SCI_AUTOCGETCHOOSESINGLE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETCHOOSESINGLE>`_

.. method:: Editor.autoCSetIgnoreCase(ignoreCase)

   Set whether case is significant when performing auto-completion searches.

   See Scintilla documentation for `SCI_AUTOCSETIGNORECASE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETIGNORECASE>`_

.. method:: Editor.autoCGetIgnoreCase() -> bool

   Retrieve state of ignore case flag.

   See Scintilla documentation for `SCI_AUTOCGETIGNORECASE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETIGNORECASE>`_

.. method:: Editor.userListShow(listType, itemList)

   Display a list of strings and send notification when user chooses one.

   See Scintilla documentation for `SCI_USERLISTSHOW <http://www.scintilla.org/ScintillaDoc.html#SCI_USERLISTSHOW>`_

.. method:: Editor.autoCSetAutoHide(autoHide)

   Set whether or not autocompletion is hidden automatically when nothing matches.

   See Scintilla documentation for `SCI_AUTOCSETAUTOHIDE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETAUTOHIDE>`_

.. method:: Editor.autoCGetAutoHide() -> bool

   Retrieve whether or not autocompletion is hidden automatically when nothing matches.

   See Scintilla documentation for `SCI_AUTOCGETAUTOHIDE <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETAUTOHIDE>`_

.. method:: Editor.autoCSetDropRestOfWord(dropRestOfWord)

   Set whether or not autocompletion deletes any word characters
   after the inserted text upon completion.

   See Scintilla documentation for `SCI_AUTOCSETDROPRESTOFWORD <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETDROPRESTOFWORD>`_

.. method:: Editor.autoCGetDropRestOfWord() -> bool

   Retrieve whether or not autocompletion deletes any word characters
   after the inserted text upon completion.

   See Scintilla documentation for `SCI_AUTOCGETDROPRESTOFWORD <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETDROPRESTOFWORD>`_

.. method:: Editor.registerImage(type, xpmData)

   Register an XPM image for use in autocompletion lists.

   See Scintilla documentation for `SCI_REGISTERIMAGE <http://www.scintilla.org/ScintillaDoc.html#SCI_REGISTERIMAGE>`_

.. method:: Editor.clearRegisteredImages()

   Clear all the registered XPM images.

   See Scintilla documentation for `SCI_CLEARREGISTEREDIMAGES <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARREGISTEREDIMAGES>`_

.. method:: Editor.autoCGetTypeSeparator() -> int

   Retrieve the auto-completion list type-separator character.

   See Scintilla documentation for `SCI_AUTOCGETTYPESEPARATOR <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETTYPESEPARATOR>`_

.. method:: Editor.autoCSetTypeSeparator(separatorCharacter)

   Change the type-separator character in the string setting up an auto-completion list.
   Default is '?' but can be changed if items contain '?'.

   See Scintilla documentation for `SCI_AUTOCSETTYPESEPARATOR <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETTYPESEPARATOR>`_

.. method:: Editor.autoCSetMaxWidth(characterCount)

   Set the maximum width, in characters, of auto-completion and user lists.
   Set to 0 to autosize to fit longest item, which is the default.

   See Scintilla documentation for `SCI_AUTOCSETMAXWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETMAXWIDTH>`_

.. method:: Editor.autoCGetMaxWidth() -> int

   Get the maximum width, in characters, of auto-completion and user lists.

   See Scintilla documentation for `SCI_AUTOCGETMAXWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETMAXWIDTH>`_

.. method:: Editor.autoCSetMaxHeight(rowCount)

   Set the maximum height, in rows, of auto-completion and user lists.
   The default is 5 rows.

   See Scintilla documentation for `SCI_AUTOCSETMAXHEIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETMAXHEIGHT>`_

.. method:: Editor.autoCGetMaxHeight() -> int

   Set the maximum height, in rows, of auto-completion and user lists.

   See Scintilla documentation for `SCI_AUTOCGETMAXHEIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETMAXHEIGHT>`_

.. method:: Editor.setIndent(indentSize)

   Set the number of spaces used for one level of indentation.

   See Scintilla documentation for `SCI_SETINDENT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETINDENT>`_

.. method:: Editor.getIndent() -> int

   Retrieve indentation size.

   See Scintilla documentation for `SCI_GETINDENT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETINDENT>`_

.. method:: Editor.setUseTabs(useTabs)

   Indentation will only use space characters if useTabs is false, otherwise
   it will use a combination of tabs and spaces.

   See Scintilla documentation for `SCI_SETUSETABS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETUSETABS>`_

.. method:: Editor.getUseTabs() -> bool

   Retrieve whether tabs will be used in indentation.

   See Scintilla documentation for `SCI_GETUSETABS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETUSETABS>`_

.. method:: Editor.setLineIndentation(line, indentSize)

   Change the indentation of a line to a number of columns.

   See Scintilla documentation for `SCI_SETLINEINDENTATION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLINEINDENTATION>`_

.. method:: Editor.getLineIndentation(line) -> int

   Retrieve the number of columns that a line is indented.

   See Scintilla documentation for `SCI_GETLINEINDENTATION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEINDENTATION>`_

.. method:: Editor.getLineIndentPosition(line) -> int

   Retrieve the position before the first non indentation character on a line.

   See Scintilla documentation for `SCI_GETLINEINDENTPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEINDENTPOSITION>`_

.. method:: Editor.getColumn(pos) -> int

   Retrieve the column number of a position, taking tab width into account.

   See Scintilla documentation for `SCI_GETCOLUMN <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCOLUMN>`_

.. method:: Editor.countCharacters(startPos, endPos) -> int

   Count characters between two positions.

   See Scintilla documentation for `SCI_COUNTCHARACTERS <http://www.scintilla.org/ScintillaDoc.html#SCI_COUNTCHARACTERS>`_

.. method:: Editor.setHScrollBar(show)

   Show or hide the horizontal scroll bar.

   See Scintilla documentation for `SCI_SETHSCROLLBAR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETHSCROLLBAR>`_

.. method:: Editor.getHScrollBar() -> bool

   Is the horizontal scroll bar visible?

   See Scintilla documentation for `SCI_GETHSCROLLBAR <http://www.scintilla.org/ScintillaDoc.html#SCI_GETHSCROLLBAR>`_

.. method:: Editor.setIndentationGuides(indentView)

   Show or hide indentation guides.

   See Scintilla documentation for `SCI_SETINDENTATIONGUIDES <http://www.scintilla.org/ScintillaDoc.html#SCI_SETINDENTATIONGUIDES>`_

.. method:: Editor.getIndentationGuides() -> int

   Are the indentation guides visible?

   See Scintilla documentation for `SCI_GETINDENTATIONGUIDES <http://www.scintilla.org/ScintillaDoc.html#SCI_GETINDENTATIONGUIDES>`_

.. method:: Editor.setHighlightGuide(column)

   Set the highlighted indentation guide column.
   0 = no highlighted guide.

   See Scintilla documentation for `SCI_SETHIGHLIGHTGUIDE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETHIGHLIGHTGUIDE>`_

.. method:: Editor.getHighlightGuide() -> int

   Get the highlighted indentation guide column.

   See Scintilla documentation for `SCI_GETHIGHLIGHTGUIDE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETHIGHLIGHTGUIDE>`_

.. method:: Editor.getLineEndPosition(line) -> int

   Get the position after the last visible characters on a line.

   See Scintilla documentation for `SCI_GETLINEENDPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEENDPOSITION>`_

.. method:: Editor.getCodePage() -> int

   Get the code page used to interpret the bytes of the document as characters.

   See Scintilla documentation for `SCI_GETCODEPAGE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCODEPAGE>`_

.. method:: Editor.getCaretFore() -> tuple

   Get the foreground colour of the caret.

   See Scintilla documentation for `SCI_GETCARETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETFORE>`_

.. method:: Editor.getReadOnly() -> bool

   In read-only mode?

   See Scintilla documentation for `SCI_GETREADONLY <http://www.scintilla.org/ScintillaDoc.html#SCI_GETREADONLY>`_

.. method:: Editor.setCurrentPos(pos)

   Sets the position of the caret.

   See Scintilla documentation for `SCI_SETCURRENTPOS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCURRENTPOS>`_

.. method:: Editor.setSelectionStart(pos)

   Sets the position that starts the selection - this becomes the anchor.

   See Scintilla documentation for `SCI_SETSELECTIONSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONSTART>`_

.. method:: Editor.getSelectionStart() -> int

   Returns the position at the start of the selection.

   See Scintilla documentation for `SCI_GETSELECTIONSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONSTART>`_

.. method:: Editor.setSelectionEnd(pos)

   Sets the position that ends the selection - this becomes the currentPosition.

   See Scintilla documentation for `SCI_SETSELECTIONEND <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONEND>`_

.. method:: Editor.getSelectionEnd() -> int

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_GETSELECTIONEND <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONEND>`_

.. method:: Editor.setEmptySelection(pos)

   Set caret to a position, while removing any existing selection.

   See Scintilla documentation for `SCI_SETEMPTYSELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETEMPTYSELECTION>`_

.. method:: Editor.setPrintMagnification(magnification)

   Sets the print magnification added to the point size of each style for printing.

   See Scintilla documentation for `SCI_SETPRINTMAGNIFICATION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPRINTMAGNIFICATION>`_

.. method:: Editor.getPrintMagnification() -> int

   Returns the print magnification.

   See Scintilla documentation for `SCI_GETPRINTMAGNIFICATION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPRINTMAGNIFICATION>`_

.. method:: Editor.setPrintColourMode(mode)

   Modify colours when printing for clearer printed text.

   See Scintilla documentation for `SCI_SETPRINTCOLOURMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPRINTCOLOURMODE>`_

.. method:: Editor.getPrintColourMode() -> int

   Returns the print colour mode.

   See Scintilla documentation for `SCI_GETPRINTCOLOURMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPRINTCOLOURMODE>`_

.. method:: Editor.findText(flags, start, end, ft) -> object

   Find some text in the document.

   See Scintilla documentation for `SCI_FINDTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_FINDTEXT>`_

.. method:: Editor.getFirstVisibleLine() -> int

   Retrieve the display line at the top of the display.

   See Scintilla documentation for `SCI_GETFIRSTVISIBLELINE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETFIRSTVISIBLELINE>`_

.. method:: Editor.getLine(line) -> str

   Retrieve the contents of a line.
   Returns the length of the line.

   See Scintilla documentation for `SCI_GETLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINE>`_

.. method:: Editor.getLineCount() -> int

   Returns the number of lines in the document. There is always at least one.

   See Scintilla documentation for `SCI_GETLINECOUNT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINECOUNT>`_

.. method:: Editor.setMarginLeft(pixelWidth)

   Sets the size in pixels of the left margin.

   See Scintilla documentation for `SCI_SETMARGINLEFT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINLEFT>`_

.. method:: Editor.getMarginLeft() -> int

   Returns the size in pixels of the left margin.

   See Scintilla documentation for `SCI_GETMARGINLEFT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINLEFT>`_

.. method:: Editor.setMarginRight(pixelWidth)

   Sets the size in pixels of the right margin.

   See Scintilla documentation for `SCI_SETMARGINRIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINRIGHT>`_

.. method:: Editor.getMarginRight() -> int

   Returns the size in pixels of the right margin.

   See Scintilla documentation for `SCI_GETMARGINRIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINRIGHT>`_

.. method:: Editor.getModify() -> bool

   Is the document different from when it was last saved?

   See Scintilla documentation for `SCI_GETMODIFY <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMODIFY>`_

.. method:: Editor.setSel(start, end)

   Select a range of text.

   See Scintilla documentation for `SCI_SETSEL <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSEL>`_

.. method:: Editor.getSelText() -> str

   Retrieve the selected text.
   Return the length of the text.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETSELTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELTEXT>`_

.. method:: Editor.getTextRange(start, end) -> str

   Retrieve a range of text.
   Return the length of the text.

   See Scintilla documentation for `SCI_GETTEXTRANGE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTEXTRANGE>`_

.. method:: Editor.hideSelection(normal)

   Draw the selection in normal style or with selection highlighted.

   See Scintilla documentation for `SCI_HIDESELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_HIDESELECTION>`_

.. method:: Editor.pointXFromPosition(pos) -> int

   Retrieve the x value of the point in the window where a position is displayed.

   See Scintilla documentation for `SCI_POINTXFROMPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_POINTXFROMPOSITION>`_

.. method:: Editor.pointYFromPosition(pos) -> int

   Retrieve the y value of the point in the window where a position is displayed.

   See Scintilla documentation for `SCI_POINTYFROMPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_POINTYFROMPOSITION>`_

.. method:: Editor.lineFromPosition(pos) -> int

   Retrieve the line containing a position.

   See Scintilla documentation for `SCI_LINEFROMPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEFROMPOSITION>`_

.. method:: Editor.positionFromLine(line) -> int

   Retrieve the position at the start of a line.

   See Scintilla documentation for `SCI_POSITIONFROMLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_POSITIONFROMLINE>`_

.. method:: Editor.lineScroll(columns, lines)

   Scroll horizontally and vertically.

   See Scintilla documentation for `SCI_LINESCROLL <http://www.scintilla.org/ScintillaDoc.html#SCI_LINESCROLL>`_

.. method:: Editor.scrollCaret()

   Ensure the caret is visible.

   See Scintilla documentation for `SCI_SCROLLCARET <http://www.scintilla.org/ScintillaDoc.html#SCI_SCROLLCARET>`_

.. method:: Editor.scrollRange(secondary, primary)

   Scroll the argument positions and the range between them into view giving
   priority to the primary position then the secondary position.
   This may be used to make a search match visible.

   See Scintilla documentation for `SCI_SCROLLRANGE <http://www.scintilla.org/ScintillaDoc.html#SCI_SCROLLRANGE>`_

.. method:: Editor.replaceSel(text)

   Replace the selected text with the argument text.

   See Scintilla documentation for `SCI_REPLACESEL <http://www.scintilla.org/ScintillaDoc.html#SCI_REPLACESEL>`_

.. method:: Editor.setReadOnly(readOnly)

   Set to read only or read write.

   See Scintilla documentation for `SCI_SETREADONLY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETREADONLY>`_

.. method:: Editor.null()

   Null operation.

   See Scintilla documentation for `SCI_NULL <http://www.scintilla.org/ScintillaDoc.html#SCI_NULL>`_

.. method:: Editor.canPaste() -> bool

   Will a paste succeed?

   See Scintilla documentation for `SCI_CANPASTE <http://www.scintilla.org/ScintillaDoc.html#SCI_CANPASTE>`_

.. method:: Editor.canUndo() -> bool

   Are there any undoable actions in the undo history?

   See Scintilla documentation for `SCI_CANUNDO <http://www.scintilla.org/ScintillaDoc.html#SCI_CANUNDO>`_

.. method:: Editor.emptyUndoBuffer()

   Delete the undo history.

   See Scintilla documentation for `SCI_EMPTYUNDOBUFFER <http://www.scintilla.org/ScintillaDoc.html#SCI_EMPTYUNDOBUFFER>`_

.. method:: Editor.undo()

   Undo one action in the undo history.

   See Scintilla documentation for `SCI_UNDO <http://www.scintilla.org/ScintillaDoc.html#SCI_UNDO>`_

.. method:: Editor.cut()

   Cut the selection to the clipboard.

   See Scintilla documentation for `SCI_CUT <http://www.scintilla.org/ScintillaDoc.html#SCI_CUT>`_

.. method:: Editor.copy()

   Copy the selection to the clipboard.

   See Scintilla documentation for `SCI_COPY <http://www.scintilla.org/ScintillaDoc.html#SCI_COPY>`_

.. method:: Editor.paste()

   Paste the contents of the clipboard into the document replacing the selection.

   See Scintilla documentation for `SCI_PASTE <http://www.scintilla.org/ScintillaDoc.html#SCI_PASTE>`_

.. method:: Editor.clear()

   Clear the selection.

   See Scintilla documentation for `SCI_CLEAR <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEAR>`_

.. method:: Editor.setText(text)

   Replace the contents of the document with the argument text.

   See Scintilla documentation for `SCI_SETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTEXT>`_

.. method:: Editor.getText() -> str

   Retrieve all the text in the document.
   Returns number of characters retrieved.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTEXT>`_

.. method:: Editor.getTextLength() -> int

   Retrieve the number of characters in the document.

   See Scintilla documentation for `SCI_GETTEXTLENGTH <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTEXTLENGTH>`_

.. method:: Editor.getDirectFunction() -> int

   Retrieve a pointer to a function that processes messages for this Scintilla.

   See Scintilla documentation for `SCI_GETDIRECTFUNCTION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETDIRECTFUNCTION>`_

.. method:: Editor.getDirectPointer() -> int

   Retrieve a pointer value to use as the first argument when calling
   the function returned by GetDirectFunction.

   See Scintilla documentation for `SCI_GETDIRECTPOINTER <http://www.scintilla.org/ScintillaDoc.html#SCI_GETDIRECTPOINTER>`_

.. method:: Editor.setOvertype(overtype)

   Set to overtype (true) or insert mode.

   See Scintilla documentation for `SCI_SETOVERTYPE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETOVERTYPE>`_

.. method:: Editor.getOvertype() -> bool

   Returns true if overtype mode is active otherwise false is returned.

   See Scintilla documentation for `SCI_GETOVERTYPE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETOVERTYPE>`_

.. method:: Editor.setCaretWidth(pixelWidth)

   Set the width of the insert mode caret.

   See Scintilla documentation for `SCI_SETCARETWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETWIDTH>`_

.. method:: Editor.getCaretWidth() -> int

   Returns the width of the insert mode caret.

   See Scintilla documentation for `SCI_GETCARETWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETWIDTH>`_

.. method:: Editor.setTargetStart(pos)

   Sets the position that starts the target which is used for updating the
   document without affecting the scroll position.

   See Scintilla documentation for `SCI_SETTARGETSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTARGETSTART>`_

.. method:: Editor.getTargetStart() -> int

   Get the position that starts the target.

   See Scintilla documentation for `SCI_GETTARGETSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTARGETSTART>`_

.. method:: Editor.setTargetEnd(pos)

   Sets the position that ends the target which is used for updating the
   document without affecting the scroll position.

   See Scintilla documentation for `SCI_SETTARGETEND <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTARGETEND>`_

.. method:: Editor.getTargetEnd() -> int

   Get the position that ends the target.

   See Scintilla documentation for `SCI_GETTARGETEND <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTARGETEND>`_

.. method:: Editor.setTargetRange(start, end)

   Sets both the start and end of the target in one call.

   See Scintilla documentation for `SCI_SETTARGETRANGE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTARGETRANGE>`_

.. method:: Editor.getTargetText() -> str

   Retrieve the text in the target.

   See Scintilla documentation for `SCI_GETTARGETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTARGETTEXT>`_

.. method:: Editor.replaceTarget(text) -> int

   Replace the target text with the argument text.
   Text is counted so it can contain NULs.
   Returns the length of the replacement text.

   See Scintilla documentation for `SCI_REPLACETARGET <http://www.scintilla.org/ScintillaDoc.html#SCI_REPLACETARGET>`_

.. method:: Editor.replaceTargetRE(text) -> int

   Replace the target text with the argument text after \\d processing.
   Text is counted so it can contain NULs.
   Looks for \\d where d is between 1 and 9 and replaces these with the strings
   matched in the last search operation which were surrounded by \\( and \\).
   Returns the length of the replacement text including any change
   caused by processing the \\d patterns.

   See Scintilla documentation for `SCI_REPLACETARGETRE <http://www.scintilla.org/ScintillaDoc.html#SCI_REPLACETARGETRE>`_

.. method:: Editor.searchInTarget(text) -> int

   Search for a counted string in the target and set the target to the found
   range. Text is counted so it can contain NULs.
   Returns length of range or -1 for failure in which case target is not moved.

   See Scintilla documentation for `SCI_SEARCHINTARGET <http://www.scintilla.org/ScintillaDoc.html#SCI_SEARCHINTARGET>`_

.. method:: Editor.setSearchFlags(flags)

   Set the search flags used by SearchInTarget.

   See Scintilla documentation for `SCI_SETSEARCHFLAGS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSEARCHFLAGS>`_

.. method:: Editor.getSearchFlags() -> int

   Get the search flags used by SearchInTarget.

   See Scintilla documentation for `SCI_GETSEARCHFLAGS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSEARCHFLAGS>`_

.. method:: Editor.callTipShow(pos, definition)

   Show a call tip containing a definition near position pos.

   See Scintilla documentation for `SCI_CALLTIPSHOW <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPSHOW>`_

.. method:: Editor.callTipCancel()

   Remove the call tip from the screen.

   See Scintilla documentation for `SCI_CALLTIPCANCEL <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPCANCEL>`_

.. method:: Editor.callTipActive() -> bool

   Is there an active call tip?

   See Scintilla documentation for `SCI_CALLTIPACTIVE <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPACTIVE>`_

.. method:: Editor.callTipPosStart() -> int

   Retrieve the position where the caret was before displaying the call tip.

   See Scintilla documentation for `SCI_CALLTIPPOSSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPPOSSTART>`_

.. method:: Editor.callTipSetPosStart(posStart)

   Set the start position in order to change when backspacing removes the calltip.

   See Scintilla documentation for `SCI_CALLTIPSETPOSSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPSETPOSSTART>`_

.. method:: Editor.callTipSetHlt(start, end)

   Highlight a segment of the definition.

   See Scintilla documentation for `SCI_CALLTIPSETHLT <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPSETHLT>`_

.. method:: Editor.callTipSetBack(back)

   Set the background colour for the call tip.

   See Scintilla documentation for `SCI_CALLTIPSETBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPSETBACK>`_

.. method:: Editor.callTipSetFore(fore)

   Set the foreground colour for the call tip.

   See Scintilla documentation for `SCI_CALLTIPSETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPSETFORE>`_

.. method:: Editor.callTipSetForeHlt(fore)

   Set the foreground colour for the highlighted part of the call tip.

   See Scintilla documentation for `SCI_CALLTIPSETFOREHLT <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPSETFOREHLT>`_

.. method:: Editor.callTipUseStyle(tabSize)

   Enable use of STYLE_CALLTIP and set call tip tab size in pixels.

   See Scintilla documentation for `SCI_CALLTIPUSESTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPUSESTYLE>`_

.. method:: Editor.callTipSetPosition(above)

   Set position of calltip, above or below text.

   See Scintilla documentation for `SCI_CALLTIPSETPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_CALLTIPSETPOSITION>`_

.. method:: Editor.visibleFromDocLine(line) -> int

   Find the display line of a document line taking hidden lines into account.

   See Scintilla documentation for `SCI_VISIBLEFROMDOCLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_VISIBLEFROMDOCLINE>`_

.. method:: Editor.docLineFromVisible(lineDisplay) -> int

   Find the document line of a display line taking hidden lines into account.

   See Scintilla documentation for `SCI_DOCLINEFROMVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_DOCLINEFROMVISIBLE>`_

.. method:: Editor.wrapCount(line) -> int

   The number of display lines needed to wrap a document line

   See Scintilla documentation for `SCI_WRAPCOUNT <http://www.scintilla.org/ScintillaDoc.html#SCI_WRAPCOUNT>`_

.. method:: Editor.setFoldLevel(line, level)

   Set the fold level of a line.
   This encodes an integer level along with flags indicating whether the
   line is a header and whether it is effectively white space.

   See Scintilla documentation for `SCI_SETFOLDLEVEL <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFOLDLEVEL>`_

.. method:: Editor.getFoldLevel(line) -> int

   Retrieve the fold level of a line.

   See Scintilla documentation for `SCI_GETFOLDLEVEL <http://www.scintilla.org/ScintillaDoc.html#SCI_GETFOLDLEVEL>`_

.. method:: Editor.getLastChild(line, level) -> int

   Find the last child line of a header line.

   See Scintilla documentation for `SCI_GETLASTCHILD <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLASTCHILD>`_

.. method:: Editor.getFoldParent(line) -> int

   Find the parent line of a child line.

   See Scintilla documentation for `SCI_GETFOLDPARENT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETFOLDPARENT>`_

.. method:: Editor.showLines(lineStart, lineEnd)

   Make a range of lines visible.

   See Scintilla documentation for `SCI_SHOWLINES <http://www.scintilla.org/ScintillaDoc.html#SCI_SHOWLINES>`_

.. method:: Editor.hideLines(lineStart, lineEnd)

   Make a range of lines invisible.

   See Scintilla documentation for `SCI_HIDELINES <http://www.scintilla.org/ScintillaDoc.html#SCI_HIDELINES>`_

.. method:: Editor.getLineVisible(line) -> bool

   Is a line visible?

   See Scintilla documentation for `SCI_GETLINEVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEVISIBLE>`_

.. method:: Editor.getAllLinesVisible() -> bool

   Are all lines visible?

   See Scintilla documentation for `SCI_GETALLLINESVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETALLLINESVISIBLE>`_

.. method:: Editor.setFoldExpanded(line, expanded)

   Show the children of a header line.

   See Scintilla documentation for `SCI_SETFOLDEXPANDED <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFOLDEXPANDED>`_

.. method:: Editor.getFoldExpanded(line) -> bool

   Is a header line expanded?

   See Scintilla documentation for `SCI_GETFOLDEXPANDED <http://www.scintilla.org/ScintillaDoc.html#SCI_GETFOLDEXPANDED>`_

.. method:: Editor.toggleFold(line)

   Switch a header line between expanded and contracted.

   See Scintilla documentation for `SCI_TOGGLEFOLD <http://www.scintilla.org/ScintillaDoc.html#SCI_TOGGLEFOLD>`_

.. method:: Editor.foldLine(line, action)

   Expand or contract a fold header.

   See Scintilla documentation for `SCI_FOLDLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_FOLDLINE>`_

.. method:: Editor.foldChildren(line, action)

   Expand or contract a fold header and its children.

   See Scintilla documentation for `SCI_FOLDCHILDREN <http://www.scintilla.org/ScintillaDoc.html#SCI_FOLDCHILDREN>`_

.. method:: Editor.expandChildren(line, level)

   Expand a fold header and all children. Use the level argument instead of the line's current level.

   See Scintilla documentation for `SCI_EXPANDCHILDREN <http://www.scintilla.org/ScintillaDoc.html#SCI_EXPANDCHILDREN>`_

.. method:: Editor.foldAll(action)

   Expand or contract all fold headers.

   See Scintilla documentation for `SCI_FOLDALL <http://www.scintilla.org/ScintillaDoc.html#SCI_FOLDALL>`_

.. method:: Editor.ensureVisible(line)

   Ensure a particular line is visible by expanding any header line hiding it.

   See Scintilla documentation for `SCI_ENSUREVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_ENSUREVISIBLE>`_

.. method:: Editor.setAutomaticFold(automaticFold)

   Set automatic folding behaviours.

   See Scintilla documentation for `SCI_SETAUTOMATICFOLD <http://www.scintilla.org/ScintillaDoc.html#SCI_SETAUTOMATICFOLD>`_

.. method:: Editor.getAutomaticFold() -> int

   Get automatic folding behaviours.

   See Scintilla documentation for `SCI_GETAUTOMATICFOLD <http://www.scintilla.org/ScintillaDoc.html#SCI_GETAUTOMATICFOLD>`_

.. method:: Editor.setFoldFlags(flags)

   Set some style options for folding.

   See Scintilla documentation for `SCI_SETFOLDFLAGS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFOLDFLAGS>`_

.. method:: Editor.ensureVisibleEnforcePolicy(line)

   Ensure a particular line is visible by expanding any header line hiding it.
   Use the currently set visibility policy to determine which range to display.

   See Scintilla documentation for `SCI_ENSUREVISIBLEENFORCEPOLICY <http://www.scintilla.org/ScintillaDoc.html#SCI_ENSUREVISIBLEENFORCEPOLICY>`_

.. method:: Editor.setTabIndents(tabIndents)

   Sets whether a tab pressed when caret is within indentation indents.

   See Scintilla documentation for `SCI_SETTABINDENTS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTABINDENTS>`_

.. method:: Editor.getTabIndents() -> bool

   Does a tab pressed when caret is within indentation indent?

   See Scintilla documentation for `SCI_GETTABINDENTS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTABINDENTS>`_

.. method:: Editor.setBackSpaceUnIndents(bsUnIndents)

   Sets whether a backspace pressed when caret is within indentation unindents.

   See Scintilla documentation for `SCI_SETBACKSPACEUNINDENTS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETBACKSPACEUNINDENTS>`_

.. method:: Editor.getBackSpaceUnIndents() -> bool

   Does a backspace pressed when caret is within indentation unindent?

   See Scintilla documentation for `SCI_GETBACKSPACEUNINDENTS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETBACKSPACEUNINDENTS>`_

.. method:: Editor.setMouseDwellTime(periodMilliseconds)

   Sets the time the mouse must sit still to generate a mouse dwell event.

   See Scintilla documentation for `SCI_SETMOUSEDWELLTIME <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMOUSEDWELLTIME>`_

.. method:: Editor.getMouseDwellTime() -> int

   Retrieve the time the mouse must sit still to generate a mouse dwell event.

   See Scintilla documentation for `SCI_GETMOUSEDWELLTIME <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMOUSEDWELLTIME>`_

.. method:: Editor.wordStartPosition(pos, onlyWordCharacters) -> int

   Get position of start of word.

   See Scintilla documentation for `SCI_WORDSTARTPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDSTARTPOSITION>`_

.. method:: Editor.wordEndPosition(pos, onlyWordCharacters) -> int

   Get position of end of word.

   See Scintilla documentation for `SCI_WORDENDPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDENDPOSITION>`_

.. method:: Editor.setWrapMode(mode)

   Sets whether text is word wrapped.

   See Scintilla documentation for `SCI_SETWRAPMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWRAPMODE>`_

.. method:: Editor.getWrapMode() -> int

   Retrieve whether text is word wrapped.

   See Scintilla documentation for `SCI_GETWRAPMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWRAPMODE>`_

.. method:: Editor.setWrapVisualFlags(wrapVisualFlags)

   Set the display mode of visual flags for wrapped lines.

   See Scintilla documentation for `SCI_SETWRAPVISUALFLAGS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWRAPVISUALFLAGS>`_

.. method:: Editor.getWrapVisualFlags() -> int

   Retrive the display mode of visual flags for wrapped lines.

   See Scintilla documentation for `SCI_GETWRAPVISUALFLAGS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWRAPVISUALFLAGS>`_

.. method:: Editor.setWrapVisualFlagsLocation(wrapVisualFlagsLocation)

   Set the location of visual flags for wrapped lines.

   See Scintilla documentation for `SCI_SETWRAPVISUALFLAGSLOCATION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWRAPVISUALFLAGSLOCATION>`_

.. method:: Editor.getWrapVisualFlagsLocation() -> int

   Retrive the location of visual flags for wrapped lines.

   See Scintilla documentation for `SCI_GETWRAPVISUALFLAGSLOCATION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWRAPVISUALFLAGSLOCATION>`_

.. method:: Editor.setWrapStartIndent(indent)

   Set the start indent for wrapped lines.

   See Scintilla documentation for `SCI_SETWRAPSTARTINDENT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWRAPSTARTINDENT>`_

.. method:: Editor.getWrapStartIndent() -> int

   Retrive the start indent for wrapped lines.

   See Scintilla documentation for `SCI_GETWRAPSTARTINDENT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWRAPSTARTINDENT>`_

.. method:: Editor.setWrapIndentMode(mode)

   Sets how wrapped sublines are placed. Default is fixed.

   See Scintilla documentation for `SCI_SETWRAPINDENTMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWRAPINDENTMODE>`_

.. method:: Editor.getWrapIndentMode() -> int

   Retrieve how wrapped sublines are placed. Default is fixed.

   See Scintilla documentation for `SCI_GETWRAPINDENTMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWRAPINDENTMODE>`_

.. method:: Editor.setLayoutCache(mode)

   Sets the degree of caching of layout information.

   See Scintilla documentation for `SCI_SETLAYOUTCACHE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLAYOUTCACHE>`_

.. method:: Editor.getLayoutCache() -> int

   Retrieve the degree of caching of layout information.

   See Scintilla documentation for `SCI_GETLAYOUTCACHE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLAYOUTCACHE>`_

.. method:: Editor.setScrollWidth(pixelWidth)

   Sets the document width assumed for scrolling.

   See Scintilla documentation for `SCI_SETSCROLLWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSCROLLWIDTH>`_

.. method:: Editor.getScrollWidth() -> int

   Retrieve the document width assumed for scrolling.

   See Scintilla documentation for `SCI_GETSCROLLWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSCROLLWIDTH>`_

.. method:: Editor.setScrollWidthTracking(tracking)

   Sets whether the maximum width line displayed is used to set scroll width.

   See Scintilla documentation for `SCI_SETSCROLLWIDTHTRACKING <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSCROLLWIDTHTRACKING>`_

.. method:: Editor.getScrollWidthTracking() -> bool

   Retrieve whether the scroll width tracks wide lines.

   See Scintilla documentation for `SCI_GETSCROLLWIDTHTRACKING <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSCROLLWIDTHTRACKING>`_

.. method:: Editor.textWidth(style, text) -> int

   Measure the pixel width of some text in a particular style.
   NUL terminated text argument.
   Does not handle tab or control characters.

   See Scintilla documentation for `SCI_TEXTWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_TEXTWIDTH>`_

.. method:: Editor.setEndAtLastLine(endAtLastLine)

   Sets the scroll range so that maximum scroll position has
   the last line at the bottom of the view (default).
   Setting this to false allows scrolling one page below the last line.

   See Scintilla documentation for `SCI_SETENDATLASTLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETENDATLASTLINE>`_

.. method:: Editor.getEndAtLastLine() -> bool

   Retrieve whether the maximum scroll position has the last
   line at the bottom of the view.

   See Scintilla documentation for `SCI_GETENDATLASTLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETENDATLASTLINE>`_

.. method:: Editor.textHeight(line) -> int

   Retrieve the height of a particular line of text in pixels.

   See Scintilla documentation for `SCI_TEXTHEIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_TEXTHEIGHT>`_

.. method:: Editor.setVScrollBar(show)

   Show or hide the vertical scroll bar.

   See Scintilla documentation for `SCI_SETVSCROLLBAR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETVSCROLLBAR>`_

.. method:: Editor.getVScrollBar() -> bool

   Is the vertical scroll bar visible?

   See Scintilla documentation for `SCI_GETVSCROLLBAR <http://www.scintilla.org/ScintillaDoc.html#SCI_GETVSCROLLBAR>`_

.. method:: Editor.appendText(text) -> int

   Append a string to the end of the document without changing the selection.

   See Scintilla documentation for `SCI_APPENDTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_APPENDTEXT>`_

.. method:: Editor.getTwoPhaseDraw() -> bool

   Is drawing done in two phases with backgrounds drawn before foregrounds?

   See Scintilla documentation for `SCI_GETTWOPHASEDRAW <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTWOPHASEDRAW>`_

.. method:: Editor.setTwoPhaseDraw(twoPhase)

   In twoPhaseDraw mode, drawing is performed in two phases, first the background
   and then the foreground. This avoids chopping off characters that overlap the next run.

   See Scintilla documentation for `SCI_SETTWOPHASEDRAW <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTWOPHASEDRAW>`_

.. method:: Editor.getPhasesDraw() -> int

   How many phases is drawing done in?

   See Scintilla documentation for `SCI_GETPHASESDRAW <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPHASESDRAW>`_

.. method:: Editor.setPhasesDraw(phases)

   In one phase draw, text is drawn in a series of rectangular blocks with no overlap.
   In two phase draw, text is drawn in a series of lines allowing runs to overlap horizontally.
   In multiple phase draw, each element is drawn over the whole drawing area, allowing text
   to overlap from one line to the next.

   See Scintilla documentation for `SCI_SETPHASESDRAW <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPHASESDRAW>`_

.. method:: Editor.setFontQuality(fontQuality)

   Choose the quality level for text from the FontQuality enumeration.

   See Scintilla documentation for `SCI_SETFONTQUALITY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFONTQUALITY>`_

.. method:: Editor.getFontQuality() -> int

   Retrieve the quality level for text.

   See Scintilla documentation for `SCI_GETFONTQUALITY <http://www.scintilla.org/ScintillaDoc.html#SCI_GETFONTQUALITY>`_

.. method:: Editor.setFirstVisibleLine(lineDisplay)

   Scroll so that a display line is at the top of the display.

   See Scintilla documentation for `SCI_SETFIRSTVISIBLELINE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFIRSTVISIBLELINE>`_

.. method:: Editor.setMultiPaste(multiPaste)

   Change the effect of pasting when there are multiple selections.

   See Scintilla documentation for `SCI_SETMULTIPASTE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMULTIPASTE>`_

.. method:: Editor.getMultiPaste() -> int

   Retrieve the effect of pasting when there are multiple selections..

   See Scintilla documentation for `SCI_GETMULTIPASTE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMULTIPASTE>`_

.. method:: Editor.getTag(tagNumber) -> str

   Retrieve the value of a tag from a regular expression search.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETTAG <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTAG>`_

.. method:: Editor.targetFromSelection()

   Make the target range start and end be the same as the selection range start and end.

   See Scintilla documentation for `SCI_TARGETFROMSELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_TARGETFROMSELECTION>`_

.. method:: Editor.linesJoin()

   Join the lines in the target.

   See Scintilla documentation for `SCI_LINESJOIN <http://www.scintilla.org/ScintillaDoc.html#SCI_LINESJOIN>`_

.. method:: Editor.linesSplit(pixelWidth)

   Split the lines in the target into lines that are less wide than pixelWidth
   where possible.

   See Scintilla documentation for `SCI_LINESSPLIT <http://www.scintilla.org/ScintillaDoc.html#SCI_LINESSPLIT>`_

.. method:: Editor.setFoldMarginColour(useSetting, back)

   Set the colours used as a chequerboard pattern in the fold margin

   See Scintilla documentation for `SCI_SETFOLDMARGINCOLOUR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFOLDMARGINCOLOUR>`_

.. method:: Editor.setFoldMarginHiColour(useSetting, fore)

   Set the colours used as a chequerboard pattern in the fold margin

   See Scintilla documentation for `SCI_SETFOLDMARGINHICOLOUR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFOLDMARGINHICOLOUR>`_

.. method:: Editor.lineDown()

   Move caret down one line.

   See Scintilla documentation for `SCI_LINEDOWN <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEDOWN>`_

.. method:: Editor.lineDownExtend()

   Move caret down one line extending selection to new caret position.

   See Scintilla documentation for `SCI_LINEDOWNEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEDOWNEXTEND>`_

.. method:: Editor.lineUp()

   Move caret up one line.

   See Scintilla documentation for `SCI_LINEUP <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEUP>`_

.. method:: Editor.lineUpExtend()

   Move caret up one line extending selection to new caret position.

   See Scintilla documentation for `SCI_LINEUPEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEUPEXTEND>`_

.. method:: Editor.charLeft()

   Move caret left one character.

   See Scintilla documentation for `SCI_CHARLEFT <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARLEFT>`_

.. method:: Editor.charLeftExtend()

   Move caret left one character extending selection to new caret position.

   See Scintilla documentation for `SCI_CHARLEFTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARLEFTEXTEND>`_

.. method:: Editor.charRight()

   Move caret right one character.

   See Scintilla documentation for `SCI_CHARRIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARRIGHT>`_

.. method:: Editor.charRightExtend()

   Move caret right one character extending selection to new caret position.

   See Scintilla documentation for `SCI_CHARRIGHTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARRIGHTEXTEND>`_

.. method:: Editor.wordLeft()

   Move caret left one word.

   See Scintilla documentation for `SCI_WORDLEFT <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDLEFT>`_

.. method:: Editor.wordLeftExtend()

   Move caret left one word extending selection to new caret position.

   See Scintilla documentation for `SCI_WORDLEFTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDLEFTEXTEND>`_

.. method:: Editor.wordRight()

   Move caret right one word.

   See Scintilla documentation for `SCI_WORDRIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDRIGHT>`_

.. method:: Editor.wordRightExtend()

   Move caret right one word extending selection to new caret position.

   See Scintilla documentation for `SCI_WORDRIGHTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDRIGHTEXTEND>`_

.. method:: Editor.home()

   Move caret to first position on line.

   See Scintilla documentation for `SCI_HOME <http://www.scintilla.org/ScintillaDoc.html#SCI_HOME>`_

.. method:: Editor.homeExtend()

   Move caret to first position on line extending selection to new caret position.

   See Scintilla documentation for `SCI_HOMEEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_HOMEEXTEND>`_

.. method:: Editor.lineEnd()

   Move caret to last position on line.

   See Scintilla documentation for `SCI_LINEEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEEND>`_

.. method:: Editor.lineEndExtend()

   Move caret to last position on line extending selection to new caret position.

   See Scintilla documentation for `SCI_LINEENDEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEENDEXTEND>`_

.. method:: Editor.documentStart()

   Move caret to first position in document.

   See Scintilla documentation for `SCI_DOCUMENTSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_DOCUMENTSTART>`_

.. method:: Editor.documentStartExtend()

   Move caret to first position in document extending selection to new caret position.

   See Scintilla documentation for `SCI_DOCUMENTSTARTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_DOCUMENTSTARTEXTEND>`_

.. method:: Editor.documentEnd()

   Move caret to last position in document.

   See Scintilla documentation for `SCI_DOCUMENTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_DOCUMENTEND>`_

.. method:: Editor.documentEndExtend()

   Move caret to last position in document extending selection to new caret position.

   See Scintilla documentation for `SCI_DOCUMENTENDEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_DOCUMENTENDEXTEND>`_

.. method:: Editor.pageUp()

   Move caret one page up.

   See Scintilla documentation for `SCI_PAGEUP <http://www.scintilla.org/ScintillaDoc.html#SCI_PAGEUP>`_

.. method:: Editor.pageUpExtend()

   Move caret one page up extending selection to new caret position.

   See Scintilla documentation for `SCI_PAGEUPEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_PAGEUPEXTEND>`_

.. method:: Editor.pageDown()

   Move caret one page down.

   See Scintilla documentation for `SCI_PAGEDOWN <http://www.scintilla.org/ScintillaDoc.html#SCI_PAGEDOWN>`_

.. method:: Editor.pageDownExtend()

   Move caret one page down extending selection to new caret position.

   See Scintilla documentation for `SCI_PAGEDOWNEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_PAGEDOWNEXTEND>`_

.. method:: Editor.editToggleOvertype()

   Switch from insert to overtype mode or the reverse.

   See Scintilla documentation for `SCI_EDITTOGGLEOVERTYPE <http://www.scintilla.org/ScintillaDoc.html#SCI_EDITTOGGLEOVERTYPE>`_

.. method:: Editor.cancel()

   Cancel any modes such as call tip or auto-completion list display.

   See Scintilla documentation for `SCI_CANCEL <http://www.scintilla.org/ScintillaDoc.html#SCI_CANCEL>`_

.. method:: Editor.deleteBack()

   Delete the selection or if no selection, the character before the caret.

   See Scintilla documentation for `SCI_DELETEBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_DELETEBACK>`_

.. method:: Editor.tab()

   If selection is empty or all on one line replace the selection with a tab character.
   If more than one line selected, indent the lines.

   See Scintilla documentation for `SCI_TAB <http://www.scintilla.org/ScintillaDoc.html#SCI_TAB>`_

.. method:: Editor.backTab()

   Dedent the selected lines.

   See Scintilla documentation for `SCI_BACKTAB <http://www.scintilla.org/ScintillaDoc.html#SCI_BACKTAB>`_

.. method:: Editor.newLine()

   Insert a new line, may use a CRLF, CR or LF depending on EOL mode.

   See Scintilla documentation for `SCI_NEWLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_NEWLINE>`_

.. method:: Editor.formFeed()

   Insert a Form Feed character.

   See Scintilla documentation for `SCI_FORMFEED <http://www.scintilla.org/ScintillaDoc.html#SCI_FORMFEED>`_

.. method:: Editor.vCHome()

   Move caret to before first visible character on line.
   If already there move to first character on line.

   See Scintilla documentation for `SCI_VCHOME <http://www.scintilla.org/ScintillaDoc.html#SCI_VCHOME>`_

.. method:: Editor.vCHomeExtend()

   Like VCHome but extending selection to new caret position.

   See Scintilla documentation for `SCI_VCHOMEEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_VCHOMEEXTEND>`_

.. method:: Editor.zoomIn()

   Magnify the displayed text by increasing the sizes by 1 point.

   See Scintilla documentation for `SCI_ZOOMIN <http://www.scintilla.org/ScintillaDoc.html#SCI_ZOOMIN>`_

.. method:: Editor.zoomOut()

   Make the displayed text smaller by decreasing the sizes by 1 point.

   See Scintilla documentation for `SCI_ZOOMOUT <http://www.scintilla.org/ScintillaDoc.html#SCI_ZOOMOUT>`_

.. method:: Editor.delWordLeft()

   Delete the word to the left of the caret.

   See Scintilla documentation for `SCI_DELWORDLEFT <http://www.scintilla.org/ScintillaDoc.html#SCI_DELWORDLEFT>`_

.. method:: Editor.delWordRight()

   Delete the word to the right of the caret.

   See Scintilla documentation for `SCI_DELWORDRIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_DELWORDRIGHT>`_

.. method:: Editor.delWordRightEnd()

   Delete the word to the right of the caret, but not the trailing non-word characters.

   See Scintilla documentation for `SCI_DELWORDRIGHTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_DELWORDRIGHTEND>`_

.. method:: Editor.lineCut()

   Cut the line containing the caret.

   See Scintilla documentation for `SCI_LINECUT <http://www.scintilla.org/ScintillaDoc.html#SCI_LINECUT>`_

.. method:: Editor.lineDelete()

   Delete the line containing the caret.

   See Scintilla documentation for `SCI_LINEDELETE <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEDELETE>`_

.. method:: Editor.lineTranspose()

   Switch the current line with the previous.

   See Scintilla documentation for `SCI_LINETRANSPOSE <http://www.scintilla.org/ScintillaDoc.html#SCI_LINETRANSPOSE>`_

.. method:: Editor.lineDuplicate()

   Duplicate the current line.

   See Scintilla documentation for `SCI_LINEDUPLICATE <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEDUPLICATE>`_

.. method:: Editor.lowerCase()

   Transform the selection to lower case.

   See Scintilla documentation for `SCI_LOWERCASE <http://www.scintilla.org/ScintillaDoc.html#SCI_LOWERCASE>`_

.. method:: Editor.upperCase()

   Transform the selection to upper case.

   See Scintilla documentation for `SCI_UPPERCASE <http://www.scintilla.org/ScintillaDoc.html#SCI_UPPERCASE>`_

.. method:: Editor.lineScrollDown()

   Scroll the document down, keeping the caret visible.

   See Scintilla documentation for `SCI_LINESCROLLDOWN <http://www.scintilla.org/ScintillaDoc.html#SCI_LINESCROLLDOWN>`_

.. method:: Editor.lineScrollUp()

   Scroll the document up, keeping the caret visible.

   See Scintilla documentation for `SCI_LINESCROLLUP <http://www.scintilla.org/ScintillaDoc.html#SCI_LINESCROLLUP>`_

.. method:: Editor.deleteBackNotLine()

   Delete the selection or if no selection, the character before the caret.
   Will not delete the character before at the start of a line.

   See Scintilla documentation for `SCI_DELETEBACKNOTLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_DELETEBACKNOTLINE>`_

.. method:: Editor.homeDisplay()

   Move caret to first position on display line.

   See Scintilla documentation for `SCI_HOMEDISPLAY <http://www.scintilla.org/ScintillaDoc.html#SCI_HOMEDISPLAY>`_

.. method:: Editor.homeDisplayExtend()

   Move caret to first position on display line extending selection to
   new caret position.

   See Scintilla documentation for `SCI_HOMEDISPLAYEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_HOMEDISPLAYEXTEND>`_

.. method:: Editor.lineEndDisplay()

   Move caret to last position on display line.

   See Scintilla documentation for `SCI_LINEENDDISPLAY <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEENDDISPLAY>`_

.. method:: Editor.lineEndDisplayExtend()

   Move caret to last position on display line extending selection to new
   caret position.

   See Scintilla documentation for `SCI_LINEENDDISPLAYEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEENDDISPLAYEXTEND>`_

.. method:: Editor.homeWrap()

   These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
   except they behave differently when word-wrap is enabled:
   They go first to the start / end of the display line, like (Home|LineEnd)Display
   The difference is that, the cursor is already at the point, it goes on to the start
   or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.

   See Scintilla documentation for `SCI_HOMEWRAP <http://www.scintilla.org/ScintillaDoc.html#SCI_HOMEWRAP>`_

.. method:: Editor.homeWrapExtend()

   These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
   except they behave differently when word-wrap is enabled:
   They go first to the start / end of the display line, like (Home|LineEnd)Display
   The difference is that, the cursor is already at the point, it goes on to the start
   or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.

   See Scintilla documentation for `SCI_HOMEWRAPEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_HOMEWRAPEXTEND>`_

.. method:: Editor.lineEndWrap()

   These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
   except they behave differently when word-wrap is enabled:
   They go first to the start / end of the display line, like (Home|LineEnd)Display
   The difference is that, the cursor is already at the point, it goes on to the start
   or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.

   See Scintilla documentation for `SCI_LINEENDWRAP <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEENDWRAP>`_

.. method:: Editor.lineEndWrapExtend()

   These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
   except they behave differently when word-wrap is enabled:
   They go first to the start / end of the display line, like (Home|LineEnd)Display
   The difference is that, the cursor is already at the point, it goes on to the start
   or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.

   See Scintilla documentation for `SCI_LINEENDWRAPEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEENDWRAPEXTEND>`_

.. method:: Editor.vCHomeWrap()

   These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
   except they behave differently when word-wrap is enabled:
   They go first to the start / end of the display line, like (Home|LineEnd)Display
   The difference is that, the cursor is already at the point, it goes on to the start
   or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.

   See Scintilla documentation for `SCI_VCHOMEWRAP <http://www.scintilla.org/ScintillaDoc.html#SCI_VCHOMEWRAP>`_

.. method:: Editor.vCHomeWrapExtend()

   These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
   except they behave differently when word-wrap is enabled:
   They go first to the start / end of the display line, like (Home|LineEnd)Display
   The difference is that, the cursor is already at the point, it goes on to the start
   or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.

   See Scintilla documentation for `SCI_VCHOMEWRAPEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_VCHOMEWRAPEXTEND>`_

.. method:: Editor.lineCopy()

   Copy the line containing the caret.

   See Scintilla documentation for `SCI_LINECOPY <http://www.scintilla.org/ScintillaDoc.html#SCI_LINECOPY>`_

.. method:: Editor.moveCaretInsideView()

   Move the caret inside current view if it's not there already.

   See Scintilla documentation for `SCI_MOVECARETINSIDEVIEW <http://www.scintilla.org/ScintillaDoc.html#SCI_MOVECARETINSIDEVIEW>`_

.. method:: Editor.lineLength(line) -> int

   How many characters are on a line, including end of line characters?

   See Scintilla documentation for `SCI_LINELENGTH <http://www.scintilla.org/ScintillaDoc.html#SCI_LINELENGTH>`_

.. method:: Editor.braceHighlight(pos1, pos2)

   Highlight the characters at two positions.

   See Scintilla documentation for `SCI_BRACEHIGHLIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_BRACEHIGHLIGHT>`_

.. method:: Editor.braceHighlightIndicator(useBraceHighlightIndicator, indicator)

   Use specified indicator to highlight matching braces instead of changing their style.

   See Scintilla documentation for `SCI_BRACEHIGHLIGHTINDICATOR <http://www.scintilla.org/ScintillaDoc.html#SCI_BRACEHIGHLIGHTINDICATOR>`_

.. method:: Editor.braceBadLight(pos)

   Highlight the character at a position indicating there is no matching brace.

   See Scintilla documentation for `SCI_BRACEBADLIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_BRACEBADLIGHT>`_

.. method:: Editor.braceBadLightIndicator(useBraceBadLightIndicator, indicator)

   Use specified indicator to highlight non matching brace instead of changing its style.

   See Scintilla documentation for `SCI_BRACEBADLIGHTINDICATOR <http://www.scintilla.org/ScintillaDoc.html#SCI_BRACEBADLIGHTINDICATOR>`_

.. method:: Editor.braceMatch(pos) -> int

   Find the position of a matching brace or INVALID_POSITION if no match.

   See Scintilla documentation for `SCI_BRACEMATCH <http://www.scintilla.org/ScintillaDoc.html#SCI_BRACEMATCH>`_

.. method:: Editor.getViewEOL() -> bool

   Are the end of line characters visible?

   See Scintilla documentation for `SCI_GETVIEWEOL <http://www.scintilla.org/ScintillaDoc.html#SCI_GETVIEWEOL>`_

.. method:: Editor.setViewEOL(visible)

   Make the end of line characters visible or invisible.

   See Scintilla documentation for `SCI_SETVIEWEOL <http://www.scintilla.org/ScintillaDoc.html#SCI_SETVIEWEOL>`_

.. method:: Editor.getDocPointer() -> int

   Retrieve a pointer to the document object.

   See Scintilla documentation for `SCI_GETDOCPOINTER <http://www.scintilla.org/ScintillaDoc.html#SCI_GETDOCPOINTER>`_

.. method:: Editor.setDocPointer(pointer)

   Change the document object used.

   See Scintilla documentation for `SCI_SETDOCPOINTER <http://www.scintilla.org/ScintillaDoc.html#SCI_SETDOCPOINTER>`_

.. method:: Editor.setModEventMask(mask)

   Set which document modification events are sent to the container.

   See Scintilla documentation for `SCI_SETMODEVENTMASK <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMODEVENTMASK>`_

.. method:: Editor.getEdgeColumn() -> int

   Retrieve the column number which text should be kept within.

   See Scintilla documentation for `SCI_GETEDGECOLUMN <http://www.scintilla.org/ScintillaDoc.html#SCI_GETEDGECOLUMN>`_

.. method:: Editor.setEdgeColumn(column)

   Set the column number of the edge.
   If text goes past the edge then it is highlighted.

   See Scintilla documentation for `SCI_SETEDGECOLUMN <http://www.scintilla.org/ScintillaDoc.html#SCI_SETEDGECOLUMN>`_

.. method:: Editor.getEdgeMode() -> int

   Retrieve the edge highlight mode.

   See Scintilla documentation for `SCI_GETEDGEMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETEDGEMODE>`_

.. method:: Editor.setEdgeMode(mode)

   The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
   goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).

   See Scintilla documentation for `SCI_SETEDGEMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETEDGEMODE>`_

.. method:: Editor.getEdgeColour() -> tuple

   Retrieve the colour used in edge indication.

   See Scintilla documentation for `SCI_GETEDGECOLOUR <http://www.scintilla.org/ScintillaDoc.html#SCI_GETEDGECOLOUR>`_

.. method:: Editor.setEdgeColour(edgeColour)

   Change the colour used in edge indication.

   See Scintilla documentation for `SCI_SETEDGECOLOUR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETEDGECOLOUR>`_

.. method:: Editor.searchAnchor()

   Sets the current caret position to be the search anchor.

   See Scintilla documentation for `SCI_SEARCHANCHOR <http://www.scintilla.org/ScintillaDoc.html#SCI_SEARCHANCHOR>`_

.. method:: Editor.searchNext(flags, text) -> int

   Find some text starting at the search anchor.
   Does not ensure the selection is visible.

   See Scintilla documentation for `SCI_SEARCHNEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_SEARCHNEXT>`_

.. method:: Editor.searchPrev(flags, text) -> int

   Find some text starting at the search anchor and moving backwards.
   Does not ensure the selection is visible.

   See Scintilla documentation for `SCI_SEARCHPREV <http://www.scintilla.org/ScintillaDoc.html#SCI_SEARCHPREV>`_

.. method:: Editor.linesOnScreen() -> int

   Retrieves the number of lines completely visible.

   See Scintilla documentation for `SCI_LINESONSCREEN <http://www.scintilla.org/ScintillaDoc.html#SCI_LINESONSCREEN>`_

.. method:: Editor.usePopUp(allowPopUp)

   Set whether a pop up menu is displayed automatically when the user presses
   the wrong mouse button.

   See Scintilla documentation for `SCI_USEPOPUP <http://www.scintilla.org/ScintillaDoc.html#SCI_USEPOPUP>`_

.. method:: Editor.selectionIsRectangle() -> bool

   Is the selection rectangular? The alternative is the more common stream selection.

   See Scintilla documentation for `SCI_SELECTIONISRECTANGLE <http://www.scintilla.org/ScintillaDoc.html#SCI_SELECTIONISRECTANGLE>`_

.. method:: Editor.setZoom(zoom)

   Set the zoom level. This number of points is added to the size of all fonts.
   It may be positive to magnify or negative to reduce.

   See Scintilla documentation for `SCI_SETZOOM <http://www.scintilla.org/ScintillaDoc.html#SCI_SETZOOM>`_

.. method:: Editor.getZoom() -> int

   Retrieve the zoom level.

   See Scintilla documentation for `SCI_GETZOOM <http://www.scintilla.org/ScintillaDoc.html#SCI_GETZOOM>`_

.. method:: Editor.createDocument() -> int

   Create a new document object.
   Starts with reference count of 1 and not selected into editor.

   See Scintilla documentation for `SCI_CREATEDOCUMENT <http://www.scintilla.org/ScintillaDoc.html#SCI_CREATEDOCUMENT>`_

.. method:: Editor.addRefDocument(doc)

   Extend life of document.

   See Scintilla documentation for `SCI_ADDREFDOCUMENT <http://www.scintilla.org/ScintillaDoc.html#SCI_ADDREFDOCUMENT>`_

.. method:: Editor.releaseDocument(doc)

   Release a reference to the document, deleting document if it fades to black.

   See Scintilla documentation for `SCI_RELEASEDOCUMENT <http://www.scintilla.org/ScintillaDoc.html#SCI_RELEASEDOCUMENT>`_

.. method:: Editor.getModEventMask() -> int

   Get which document modification events are sent to the container.

   See Scintilla documentation for `SCI_GETMODEVENTMASK <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMODEVENTMASK>`_

.. method:: Editor.setFocus(focus)

   Change internal focus flag.

   See Scintilla documentation for `SCI_SETFOCUS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETFOCUS>`_

.. method:: Editor.getFocus() -> bool

   Get internal focus flag.

   See Scintilla documentation for `SCI_GETFOCUS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETFOCUS>`_

.. method:: Editor.setStatus(statusCode)

   Change error status - 0 = OK.

   See Scintilla documentation for `SCI_SETSTATUS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSTATUS>`_

.. method:: Editor.getStatus() -> int

   Get error status.

   See Scintilla documentation for `SCI_GETSTATUS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSTATUS>`_

.. method:: Editor.setMouseDownCaptures(captures)

   Set whether the mouse is captured when its button is pressed.

   See Scintilla documentation for `SCI_SETMOUSEDOWNCAPTURES <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMOUSEDOWNCAPTURES>`_

.. method:: Editor.getMouseDownCaptures() -> bool

   Get whether mouse gets captured.

   See Scintilla documentation for `SCI_GETMOUSEDOWNCAPTURES <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMOUSEDOWNCAPTURES>`_

.. method:: Editor.setCursor(cursorType)

   Sets the cursor to one of the SC_CURSOR* values.

   See Scintilla documentation for `SCI_SETCURSOR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCURSOR>`_

.. method:: Editor.getCursor() -> int

   Get cursor type.

   See Scintilla documentation for `SCI_GETCURSOR <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCURSOR>`_

.. method:: Editor.setControlCharSymbol(symbol)

   Change the way control characters are displayed:
   If symbol is < 32, keep the drawn way, else, use the given character.

   See Scintilla documentation for `SCI_SETCONTROLCHARSYMBOL <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCONTROLCHARSYMBOL>`_

.. method:: Editor.getControlCharSymbol() -> int

   Get the way control characters are displayed.

   See Scintilla documentation for `SCI_GETCONTROLCHARSYMBOL <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCONTROLCHARSYMBOL>`_

.. method:: Editor.wordPartLeft()

   Move to the previous change in capitalisation.

   See Scintilla documentation for `SCI_WORDPARTLEFT <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDPARTLEFT>`_

.. method:: Editor.wordPartLeftExtend()

   Move to the previous change in capitalisation extending selection
   to new caret position.

   See Scintilla documentation for `SCI_WORDPARTLEFTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDPARTLEFTEXTEND>`_

.. method:: Editor.wordPartRight()

   Move to the change next in capitalisation.

   See Scintilla documentation for `SCI_WORDPARTRIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDPARTRIGHT>`_

.. method:: Editor.wordPartRightExtend()

   Move to the next change in capitalisation extending selection
   to new caret position.

   See Scintilla documentation for `SCI_WORDPARTRIGHTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDPARTRIGHTEXTEND>`_

.. method:: Editor.setVisiblePolicy(visiblePolicy, visibleSlop)

   Set the way the display area is determined when a particular line
   is to be moved to by Find, FindNext, GotoLine, etc.

   See Scintilla documentation for `SCI_SETVISIBLEPOLICY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETVISIBLEPOLICY>`_

.. method:: Editor.delLineLeft()

   Delete back from the current position to the start of the line.

   See Scintilla documentation for `SCI_DELLINELEFT <http://www.scintilla.org/ScintillaDoc.html#SCI_DELLINELEFT>`_

.. method:: Editor.delLineRight()

   Delete forwards from the current position to the end of the line.

   See Scintilla documentation for `SCI_DELLINERIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_DELLINERIGHT>`_

.. method:: Editor.setXOffset(newOffset)

   Get and Set the xOffset (ie, horizontal scroll position).

   See Scintilla documentation for `SCI_SETXOFFSET <http://www.scintilla.org/ScintillaDoc.html#SCI_SETXOFFSET>`_

.. method:: Editor.getXOffset() -> int

   Get and Set the xOffset (ie, horizontal scroll position).

   See Scintilla documentation for `SCI_GETXOFFSET <http://www.scintilla.org/ScintillaDoc.html#SCI_GETXOFFSET>`_

.. method:: Editor.chooseCaretX()

   Set the last x chosen value to be the caret x position.

   See Scintilla documentation for `SCI_CHOOSECARETX <http://www.scintilla.org/ScintillaDoc.html#SCI_CHOOSECARETX>`_

.. method:: Editor.grabFocus()

   Set the focus to this Scintilla widget.

   See Scintilla documentation for `SCI_GRABFOCUS <http://www.scintilla.org/ScintillaDoc.html#SCI_GRABFOCUS>`_

.. method:: Editor.setXCaretPolicy(caretPolicy, caretSlop)

   Set the way the caret is kept visible when going sideways.
   The exclusion zone is given in pixels.

   See Scintilla documentation for `SCI_SETXCARETPOLICY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETXCARETPOLICY>`_

.. method:: Editor.setYCaretPolicy(caretPolicy, caretSlop)

   Set the way the line the caret is on is kept visible.
   The exclusion zone is given in lines.

   See Scintilla documentation for `SCI_SETYCARETPOLICY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETYCARETPOLICY>`_

.. method:: Editor.setPrintWrapMode(mode)

   Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).

   See Scintilla documentation for `SCI_SETPRINTWRAPMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPRINTWRAPMODE>`_

.. method:: Editor.getPrintWrapMode() -> int

   Is printing line wrapped?

   See Scintilla documentation for `SCI_GETPRINTWRAPMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPRINTWRAPMODE>`_

.. method:: Editor.setHotspotActiveFore(useSetting, fore)

   Set a fore colour for active hotspots.

   See Scintilla documentation for `SCI_SETHOTSPOTACTIVEFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETHOTSPOTACTIVEFORE>`_

.. method:: Editor.getHotspotActiveFore() -> tuple

   Get the fore colour for active hotspots.

   See Scintilla documentation for `SCI_GETHOTSPOTACTIVEFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETHOTSPOTACTIVEFORE>`_

.. method:: Editor.setHotspotActiveBack(useSetting, back)

   Set a back colour for active hotspots.

   See Scintilla documentation for `SCI_SETHOTSPOTACTIVEBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_SETHOTSPOTACTIVEBACK>`_

.. method:: Editor.getHotspotActiveBack() -> tuple

   Get the back colour for active hotspots.

   See Scintilla documentation for `SCI_GETHOTSPOTACTIVEBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_GETHOTSPOTACTIVEBACK>`_

.. method:: Editor.setHotspotActiveUnderline(underline)

   Enable / Disable underlining active hotspots.

   See Scintilla documentation for `SCI_SETHOTSPOTACTIVEUNDERLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETHOTSPOTACTIVEUNDERLINE>`_

.. method:: Editor.getHotspotActiveUnderline() -> bool

   Get whether underlining for active hotspots.

   See Scintilla documentation for `SCI_GETHOTSPOTACTIVEUNDERLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETHOTSPOTACTIVEUNDERLINE>`_

.. method:: Editor.setHotspotSingleLine(singleLine)

   Limit hotspots to single line so hotspots on two lines don't merge.

   See Scintilla documentation for `SCI_SETHOTSPOTSINGLELINE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETHOTSPOTSINGLELINE>`_

.. method:: Editor.getHotspotSingleLine() -> bool

   Get the HotspotSingleLine property

   See Scintilla documentation for `SCI_GETHOTSPOTSINGLELINE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETHOTSPOTSINGLELINE>`_

.. method:: Editor.paraDown()

   Move caret between paragraphs (delimited by empty lines).

   See Scintilla documentation for `SCI_PARADOWN <http://www.scintilla.org/ScintillaDoc.html#SCI_PARADOWN>`_

.. method:: Editor.paraDownExtend()

   Move caret between paragraphs (delimited by empty lines).

   See Scintilla documentation for `SCI_PARADOWNEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_PARADOWNEXTEND>`_

.. method:: Editor.paraUp()

   Move caret between paragraphs (delimited by empty lines).

   See Scintilla documentation for `SCI_PARAUP <http://www.scintilla.org/ScintillaDoc.html#SCI_PARAUP>`_

.. method:: Editor.paraUpExtend()

   Move caret between paragraphs (delimited by empty lines).

   See Scintilla documentation for `SCI_PARAUPEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_PARAUPEXTEND>`_

.. method:: Editor.positionBefore(pos) -> int

   Given a valid document position, return the previous position taking code
   page into account. Returns 0 if passed 0.

   See Scintilla documentation for `SCI_POSITIONBEFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_POSITIONBEFORE>`_

.. method:: Editor.positionAfter(pos) -> int

   Given a valid document position, return the next position taking code
   page into account. Maximum value returned is the last position in the document.

   See Scintilla documentation for `SCI_POSITIONAFTER <http://www.scintilla.org/ScintillaDoc.html#SCI_POSITIONAFTER>`_

.. method:: Editor.positionRelative(pos, relative) -> int

   Given a valid document position, return a position that differs in a number
   of characters. Returned value is always between 0 and last position in document.

   See Scintilla documentation for `SCI_POSITIONRELATIVE <http://www.scintilla.org/ScintillaDoc.html#SCI_POSITIONRELATIVE>`_

.. method:: Editor.copyRange(start, end)

   Copy a range of text to the clipboard. Positions are clipped into the document.

   See Scintilla documentation for `SCI_COPYRANGE <http://www.scintilla.org/ScintillaDoc.html#SCI_COPYRANGE>`_

.. method:: Editor.copyText(text) -> int

   Copy argument text to the clipboard.

   See Scintilla documentation for `SCI_COPYTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_COPYTEXT>`_

.. method:: Editor.setSelectionMode(mode)

   Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or
   by lines (SC_SEL_LINES).

   See Scintilla documentation for `SCI_SETSELECTIONMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONMODE>`_

.. method:: Editor.getSelectionMode() -> int

   Get the mode of the current selection.

   See Scintilla documentation for `SCI_GETSELECTIONMODE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONMODE>`_

.. method:: Editor.getLineSelStartPosition(line) -> int

   Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).

   See Scintilla documentation for `SCI_GETLINESELSTARTPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINESELSTARTPOSITION>`_

.. method:: Editor.getLineSelEndPosition(line) -> int

   Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).

   See Scintilla documentation for `SCI_GETLINESELENDPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINESELENDPOSITION>`_

.. method:: Editor.lineDownRectExtend()

   Move caret down one line, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_LINEDOWNRECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEDOWNRECTEXTEND>`_

.. method:: Editor.lineUpRectExtend()

   Move caret up one line, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_LINEUPRECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEUPRECTEXTEND>`_

.. method:: Editor.charLeftRectExtend()

   Move caret left one character, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_CHARLEFTRECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARLEFTRECTEXTEND>`_

.. method:: Editor.charRightRectExtend()

   Move caret right one character, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_CHARRIGHTRECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARRIGHTRECTEXTEND>`_

.. method:: Editor.homeRectExtend()

   Move caret to first position on line, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_HOMERECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_HOMERECTEXTEND>`_

.. method:: Editor.vCHomeRectExtend()

   Move caret to before first visible character on line.
   If already there move to first character on line.
   In either case, extend rectangular selection to new caret position.

   See Scintilla documentation for `SCI_VCHOMERECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_VCHOMERECTEXTEND>`_

.. method:: Editor.lineEndRectExtend()

   Move caret to last position on line, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_LINEENDRECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_LINEENDRECTEXTEND>`_

.. method:: Editor.pageUpRectExtend()

   Move caret one page up, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_PAGEUPRECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_PAGEUPRECTEXTEND>`_

.. method:: Editor.pageDownRectExtend()

   Move caret one page down, extending rectangular selection to new caret position.

   See Scintilla documentation for `SCI_PAGEDOWNRECTEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_PAGEDOWNRECTEXTEND>`_

.. method:: Editor.stutteredPageUp()

   Move caret to top of page, or one page up if already at top of page.

   See Scintilla documentation for `SCI_STUTTEREDPAGEUP <http://www.scintilla.org/ScintillaDoc.html#SCI_STUTTEREDPAGEUP>`_

.. method:: Editor.stutteredPageUpExtend()

   Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.

   See Scintilla documentation for `SCI_STUTTEREDPAGEUPEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_STUTTEREDPAGEUPEXTEND>`_

.. method:: Editor.stutteredPageDown()

   Move caret to bottom of page, or one page down if already at bottom of page.

   See Scintilla documentation for `SCI_STUTTEREDPAGEDOWN <http://www.scintilla.org/ScintillaDoc.html#SCI_STUTTEREDPAGEDOWN>`_

.. method:: Editor.stutteredPageDownExtend()

   Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.

   See Scintilla documentation for `SCI_STUTTEREDPAGEDOWNEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_STUTTEREDPAGEDOWNEXTEND>`_

.. method:: Editor.wordLeftEnd()

   Move caret left one word, position cursor at end of word.

   See Scintilla documentation for `SCI_WORDLEFTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDLEFTEND>`_

.. method:: Editor.wordLeftEndExtend()

   Move caret left one word, position cursor at end of word, extending selection to new caret position.

   See Scintilla documentation for `SCI_WORDLEFTENDEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDLEFTENDEXTEND>`_

.. method:: Editor.wordRightEnd()

   Move caret right one word, position cursor at end of word.

   See Scintilla documentation for `SCI_WORDRIGHTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDRIGHTEND>`_

.. method:: Editor.wordRightEndExtend()

   Move caret right one word, position cursor at end of word, extending selection to new caret position.

   See Scintilla documentation for `SCI_WORDRIGHTENDEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_WORDRIGHTENDEXTEND>`_

.. method:: Editor.setWhitespaceChars(characters)

   Set the set of characters making up whitespace for when moving or selecting by word.
   Should be called after SetWordChars.

   See Scintilla documentation for `SCI_SETWHITESPACECHARS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETWHITESPACECHARS>`_

.. method:: Editor.getWhitespaceChars() -> str

   Get the set of characters making up whitespace for when moving or selecting by word.

   See Scintilla documentation for `SCI_GETWHITESPACECHARS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETWHITESPACECHARS>`_

.. method:: Editor.setPunctuationChars(characters)

   Set the set of characters making up punctuation characters
   Should be called after SetWordChars.

   See Scintilla documentation for `SCI_SETPUNCTUATIONCHARS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPUNCTUATIONCHARS>`_

.. method:: Editor.getPunctuationChars() -> str

   Get the set of characters making up punctuation characters

   See Scintilla documentation for `SCI_GETPUNCTUATIONCHARS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPUNCTUATIONCHARS>`_

.. method:: Editor.setCharsDefault()

   Reset the set of characters for whitespace and word characters to the defaults.

   See Scintilla documentation for `SCI_SETCHARSDEFAULT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCHARSDEFAULT>`_

.. method:: Editor.autoCGetCurrent() -> int

   Get currently selected item position in the auto-completion list

   See Scintilla documentation for `SCI_AUTOCGETCURRENT <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETCURRENT>`_

.. method:: Editor.autoCGetCurrentText() -> str

   Get currently selected item text in the auto-completion list
   Returns the length of the item text
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_AUTOCGETCURRENTTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETCURRENTTEXT>`_

.. method:: Editor.autoCSetCaseInsensitiveBehaviour(behaviour)

   Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.

   See Scintilla documentation for `SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR>`_

.. method:: Editor.autoCGetCaseInsensitiveBehaviour() -> int

   Get auto-completion case insensitive behaviour.

   See Scintilla documentation for `SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR>`_

.. method:: Editor.autoCSetMulti(multi)

   Change the effect of autocompleting when there are multiple selections.

   See Scintilla documentation for `SCI_AUTOCSETMULTI <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETMULTI>`_

.. method:: Editor.autoCGetMulti() -> int

   Retrieve the effect of autocompleting when there are multiple selections..

   See Scintilla documentation for `SCI_AUTOCGETMULTI <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETMULTI>`_

.. method:: Editor.autoCSetOrder(order)

   Set the way autocompletion lists are ordered.

   See Scintilla documentation for `SCI_AUTOCSETORDER <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETORDER>`_

.. method:: Editor.autoCGetOrder() -> int

   Get the way autocompletion lists are ordered.

   See Scintilla documentation for `SCI_AUTOCGETORDER <http://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCGETORDER>`_

.. method:: Editor.allocate(bytes)

   Enlarge the document to a particular size of text bytes.

   See Scintilla documentation for `SCI_ALLOCATE <http://www.scintilla.org/ScintillaDoc.html#SCI_ALLOCATE>`_

.. method:: Editor.targetAsUTF8() -> str

   Returns the target converted to UTF8.
   Return the length in bytes.

   See Scintilla documentation for `SCI_TARGETASUTF8 <http://www.scintilla.org/ScintillaDoc.html#SCI_TARGETASUTF8>`_

.. method:: Editor.setLengthForEncode(bytes)

   Set the length of the utf8 argument for calling EncodedFromUTF8.
   Set to -1 and the string will be measured to the first nul.

   See Scintilla documentation for `SCI_SETLENGTHFORENCODE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLENGTHFORENCODE>`_

.. method:: Editor.encodedFromUTF8(utf8) -> str

   Translates a UTF8 string into the document encoding.
   Return the length of the result in bytes.
   On error return 0.

   See Scintilla documentation for `SCI_ENCODEDFROMUTF8 <http://www.scintilla.org/ScintillaDoc.html#SCI_ENCODEDFROMUTF8>`_

.. method:: Editor.findColumn(line, column) -> int

   Find the position of a column on a line taking into account tabs and
   multi-byte characters. If beyond end of line, return line end position.

   See Scintilla documentation for `SCI_FINDCOLUMN <http://www.scintilla.org/ScintillaDoc.html#SCI_FINDCOLUMN>`_

.. method:: Editor.getCaretSticky() -> int

   Can the caret preferred x position only be changed by explicit movement commands?

   See Scintilla documentation for `SCI_GETCARETSTICKY <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETSTICKY>`_

.. method:: Editor.setCaretSticky(useCaretStickyBehaviour)

   Stop the caret preferred x position changing when the user types.

   See Scintilla documentation for `SCI_SETCARETSTICKY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETSTICKY>`_

.. method:: Editor.toggleCaretSticky()

   Switch between sticky and non-sticky: meant to be bound to a key.

   See Scintilla documentation for `SCI_TOGGLECARETSTICKY <http://www.scintilla.org/ScintillaDoc.html#SCI_TOGGLECARETSTICKY>`_

.. method:: Editor.setPasteConvertEndings(convert)

   Enable/Disable convert-on-paste for line endings

   See Scintilla documentation for `SCI_SETPASTECONVERTENDINGS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPASTECONVERTENDINGS>`_

.. method:: Editor.getPasteConvertEndings() -> bool

   Get convert-on-paste setting

   See Scintilla documentation for `SCI_GETPASTECONVERTENDINGS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPASTECONVERTENDINGS>`_

.. method:: Editor.selectionDuplicate()

   Duplicate the selection. If selection empty duplicate the line containing the caret.

   See Scintilla documentation for `SCI_SELECTIONDUPLICATE <http://www.scintilla.org/ScintillaDoc.html#SCI_SELECTIONDUPLICATE>`_

.. method:: Editor.setCaretLineBackAlpha(alpha)

   Set background alpha of the caret line.

   See Scintilla documentation for `SCI_SETCARETLINEBACKALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETLINEBACKALPHA>`_

.. method:: Editor.getCaretLineBackAlpha() -> int

   Get the background alpha of the caret line.

   See Scintilla documentation for `SCI_GETCARETLINEBACKALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETLINEBACKALPHA>`_

.. method:: Editor.setCaretStyle(caretStyle)

   Set the style of the caret to be drawn.

   See Scintilla documentation for `SCI_SETCARETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETSTYLE>`_

.. method:: Editor.getCaretStyle() -> int

   Returns the current style of the caret.

   See Scintilla documentation for `SCI_GETCARETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETSTYLE>`_

.. method:: Editor.setIndicatorCurrent(indicator)

   Set the indicator used for IndicatorFillRange and IndicatorClearRange

   See Scintilla documentation for `SCI_SETINDICATORCURRENT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETINDICATORCURRENT>`_

.. method:: Editor.getIndicatorCurrent() -> int

   Get the current indicator

   See Scintilla documentation for `SCI_GETINDICATORCURRENT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETINDICATORCURRENT>`_

.. method:: Editor.setIndicatorValue(value)

   Set the value used for IndicatorFillRange

   See Scintilla documentation for `SCI_SETINDICATORVALUE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETINDICATORVALUE>`_

.. method:: Editor.getIndicatorValue() -> int

   Get the current indicator value

   See Scintilla documentation for `SCI_GETINDICATORVALUE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETINDICATORVALUE>`_

.. method:: Editor.indicatorFillRange(position, fillLength)

   Turn a indicator on over a range.

   See Scintilla documentation for `SCI_INDICATORFILLRANGE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICATORFILLRANGE>`_

.. method:: Editor.indicatorClearRange(position, clearLength)

   Turn a indicator off over a range.

   See Scintilla documentation for `SCI_INDICATORCLEARRANGE <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICATORCLEARRANGE>`_

.. method:: Editor.indicatorAllOnFor(position) -> int

   Are any indicators present at position?

   See Scintilla documentation for `SCI_INDICATORALLONFOR <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICATORALLONFOR>`_

.. method:: Editor.indicatorValueAt(indicator, position) -> int

   What value does a particular indicator have at at a position?

   See Scintilla documentation for `SCI_INDICATORVALUEAT <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICATORVALUEAT>`_

.. method:: Editor.indicatorStart(indicator, position) -> int

   Where does a particular indicator start?

   See Scintilla documentation for `SCI_INDICATORSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICATORSTART>`_

.. method:: Editor.indicatorEnd(indicator, position) -> int

   Where does a particular indicator end?

   See Scintilla documentation for `SCI_INDICATOREND <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICATOREND>`_

.. method:: Editor.setPositionCache(size)

   Set number of entries in position cache

   See Scintilla documentation for `SCI_SETPOSITIONCACHE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPOSITIONCACHE>`_

.. method:: Editor.getPositionCache() -> int

   How many entries are allocated to the position cache?

   See Scintilla documentation for `SCI_GETPOSITIONCACHE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPOSITIONCACHE>`_

.. method:: Editor.copyAllowLine()

   Copy the selection, if selection empty copy the line with the caret

   See Scintilla documentation for `SCI_COPYALLOWLINE <http://www.scintilla.org/ScintillaDoc.html#SCI_COPYALLOWLINE>`_

.. method:: Editor.getGapPosition() -> int

   Return a position which, to avoid performance costs, should not be within
   the range of a call to GetRangePointer.

   See Scintilla documentation for `SCI_GETGAPPOSITION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETGAPPOSITION>`_

.. method:: Editor.indicSetAlpha(indicator, alpha)

   Set the alpha fill colour of the given indicator.

   See Scintilla documentation for `SCI_INDICSETALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETALPHA>`_

.. method:: Editor.indicGetAlpha(indicator) -> int

   Get the alpha fill colour of the given indicator.

   See Scintilla documentation for `SCI_INDICGETALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETALPHA>`_

.. method:: Editor.indicSetOutlineAlpha(indicator, alpha)

   Set the alpha outline colour of the given indicator.

   See Scintilla documentation for `SCI_INDICSETOUTLINEALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETOUTLINEALPHA>`_

.. method:: Editor.indicGetOutlineAlpha(indicator) -> int

   Get the alpha outline colour of the given indicator.

   See Scintilla documentation for `SCI_INDICGETOUTLINEALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_INDICGETOUTLINEALPHA>`_

.. method:: Editor.setExtraAscent(extraAscent)

   Set extra ascent for each line

   See Scintilla documentation for `SCI_SETEXTRAASCENT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETEXTRAASCENT>`_

.. method:: Editor.getExtraAscent() -> int

   Get extra ascent for each line

   See Scintilla documentation for `SCI_GETEXTRAASCENT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETEXTRAASCENT>`_

.. method:: Editor.setExtraDescent(extraDescent)

   Set extra descent for each line

   See Scintilla documentation for `SCI_SETEXTRADESCENT <http://www.scintilla.org/ScintillaDoc.html#SCI_SETEXTRADESCENT>`_

.. method:: Editor.getExtraDescent() -> int

   Get extra descent for each line

   See Scintilla documentation for `SCI_GETEXTRADESCENT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETEXTRADESCENT>`_

.. method:: Editor.markerSymbolDefined(markerNumber) -> int

   Which symbol was defined for markerNumber with MarkerDefine

   See Scintilla documentation for `SCI_MARKERSYMBOLDEFINED <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERSYMBOLDEFINED>`_

.. method:: Editor.marginSetText(line, text)

   Set the text in the text margin for a line

   See Scintilla documentation for `SCI_MARGINSETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINSETTEXT>`_

.. method:: Editor.marginGetText(line) -> str

   Get the text in the text margin for a line

   See Scintilla documentation for `SCI_MARGINGETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINGETTEXT>`_

.. method:: Editor.marginSetStyle(line, style)

   Set the style number for the text margin for a line

   See Scintilla documentation for `SCI_MARGINSETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINSETSTYLE>`_

.. method:: Editor.marginGetStyle(line) -> int

   Get the style number for the text margin for a line

   See Scintilla documentation for `SCI_MARGINGETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINGETSTYLE>`_

.. method:: Editor.marginSetStyles(line, styles)

   Set the style in the text margin for a line

   See Scintilla documentation for `SCI_MARGINSETSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINSETSTYLES>`_

.. method:: Editor.marginGetStyles(line) -> str

   Get the styles in the text margin for a line

   See Scintilla documentation for `SCI_MARGINGETSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINGETSTYLES>`_

.. method:: Editor.marginTextClearAll()

   Clear the margin text on all lines

   See Scintilla documentation for `SCI_MARGINTEXTCLEARALL <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINTEXTCLEARALL>`_

.. method:: Editor.marginSetStyleOffset(style)

   Get the start of the range of style numbers used for margin text

   See Scintilla documentation for `SCI_MARGINSETSTYLEOFFSET <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINSETSTYLEOFFSET>`_

.. method:: Editor.marginGetStyleOffset() -> int

   Get the start of the range of style numbers used for margin text

   See Scintilla documentation for `SCI_MARGINGETSTYLEOFFSET <http://www.scintilla.org/ScintillaDoc.html#SCI_MARGINGETSTYLEOFFSET>`_

.. method:: Editor.setMarginOptions(marginOptions)

   Set the margin options.

   See Scintilla documentation for `SCI_SETMARGINOPTIONS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINOPTIONS>`_

.. method:: Editor.getMarginOptions() -> int

   Get the margin options.

   See Scintilla documentation for `SCI_GETMARGINOPTIONS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMARGINOPTIONS>`_

.. method:: Editor.annotationSetText(line, text)

   Set the annotation text for a line

   See Scintilla documentation for `SCI_ANNOTATIONSETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONSETTEXT>`_

.. method:: Editor.annotationGetText(line) -> str

   Get the annotation text for a line

   See Scintilla documentation for `SCI_ANNOTATIONGETTEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONGETTEXT>`_

.. method:: Editor.annotationSetStyle(line, style)

   Set the style number for the annotations for a line

   See Scintilla documentation for `SCI_ANNOTATIONSETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONSETSTYLE>`_

.. method:: Editor.annotationGetStyle(line) -> int

   Get the style number for the annotations for a line

   See Scintilla documentation for `SCI_ANNOTATIONGETSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONGETSTYLE>`_

.. method:: Editor.annotationSetStyles(line, styles)

   Set the annotation styles for a line

   See Scintilla documentation for `SCI_ANNOTATIONSETSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONSETSTYLES>`_

.. method:: Editor.annotationGetStyles(line) -> str

   Get the annotation styles for a line

   See Scintilla documentation for `SCI_ANNOTATIONGETSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONGETSTYLES>`_

.. method:: Editor.annotationGetLines(line) -> int

   Get the number of annotation lines for a line

   See Scintilla documentation for `SCI_ANNOTATIONGETLINES <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONGETLINES>`_

.. method:: Editor.annotationClearAll()

   Clear the annotations from all lines

   See Scintilla documentation for `SCI_ANNOTATIONCLEARALL <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONCLEARALL>`_

.. method:: Editor.annotationSetVisible(visible)

   Set the visibility for the annotations for a view

   See Scintilla documentation for `SCI_ANNOTATIONSETVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONSETVISIBLE>`_

.. method:: Editor.annotationGetVisible() -> int

   Get the visibility for the annotations for a view

   See Scintilla documentation for `SCI_ANNOTATIONGETVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONGETVISIBLE>`_

.. method:: Editor.annotationSetStyleOffset(style)

   Get the start of the range of style numbers used for annotations

   See Scintilla documentation for `SCI_ANNOTATIONSETSTYLEOFFSET <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONSETSTYLEOFFSET>`_

.. method:: Editor.annotationGetStyleOffset() -> int

   Get the start of the range of style numbers used for annotations

   See Scintilla documentation for `SCI_ANNOTATIONGETSTYLEOFFSET <http://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONGETSTYLEOFFSET>`_

.. method:: Editor.releaseAllExtendedStyles()

   Release all extended (>255) style numbers

   See Scintilla documentation for `SCI_RELEASEALLEXTENDEDSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_RELEASEALLEXTENDEDSTYLES>`_

.. method:: Editor.allocateExtendedStyles(numberStyles) -> int

   Allocate some extended (>255) style numbers and return the start of the range

   See Scintilla documentation for `SCI_ALLOCATEEXTENDEDSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_ALLOCATEEXTENDEDSTYLES>`_

.. method:: Editor.addUndoAction(token, flags)

   Add a container action to the undo stack

   See Scintilla documentation for `SCI_ADDUNDOACTION <http://www.scintilla.org/ScintillaDoc.html#SCI_ADDUNDOACTION>`_

.. method:: Editor.charPositionFromPoint(x, y) -> int

   Find the position of a character from a point within the window.

   See Scintilla documentation for `SCI_CHARPOSITIONFROMPOINT <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARPOSITIONFROMPOINT>`_

.. method:: Editor.charPositionFromPointClose(x, y) -> int

   Find the position of a character from a point within the window.
   Return INVALID_POSITION if not close to text.

   See Scintilla documentation for `SCI_CHARPOSITIONFROMPOINTCLOSE <http://www.scintilla.org/ScintillaDoc.html#SCI_CHARPOSITIONFROMPOINTCLOSE>`_

.. method:: Editor.setMouseSelectionRectangularSwitch(mouseSelectionRectangularSwitch)

   Set whether switching to rectangular mode while selecting with the mouse is allowed.

   See Scintilla documentation for `SCI_SETMOUSESELECTIONRECTANGULARSWITCH <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMOUSESELECTIONRECTANGULARSWITCH>`_

.. method:: Editor.getMouseSelectionRectangularSwitch() -> bool

   Whether switching to rectangular mode while selecting with the mouse is allowed.

   See Scintilla documentation for `SCI_GETMOUSESELECTIONRECTANGULARSWITCH <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMOUSESELECTIONRECTANGULARSWITCH>`_

.. method:: Editor.setMultipleSelection(multipleSelection)

   Set whether multiple selections can be made

   See Scintilla documentation for `SCI_SETMULTIPLESELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMULTIPLESELECTION>`_

.. method:: Editor.getMultipleSelection() -> bool

   Whether multiple selections can be made

   See Scintilla documentation for `SCI_GETMULTIPLESELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMULTIPLESELECTION>`_

.. method:: Editor.setAdditionalSelectionTyping(additionalSelectionTyping)

   Set whether typing can be performed into multiple selections

   See Scintilla documentation for `SCI_SETADDITIONALSELECTIONTYPING <http://www.scintilla.org/ScintillaDoc.html#SCI_SETADDITIONALSELECTIONTYPING>`_

.. method:: Editor.getAdditionalSelectionTyping() -> bool

   Whether typing can be performed into multiple selections

   See Scintilla documentation for `SCI_GETADDITIONALSELECTIONTYPING <http://www.scintilla.org/ScintillaDoc.html#SCI_GETADDITIONALSELECTIONTYPING>`_

.. method:: Editor.setAdditionalCaretsBlink(additionalCaretsBlink)

   Set whether additional carets will blink

   See Scintilla documentation for `SCI_SETADDITIONALCARETSBLINK <http://www.scintilla.org/ScintillaDoc.html#SCI_SETADDITIONALCARETSBLINK>`_

.. method:: Editor.getAdditionalCaretsBlink() -> bool

   Whether additional carets will blink

   See Scintilla documentation for `SCI_GETADDITIONALCARETSBLINK <http://www.scintilla.org/ScintillaDoc.html#SCI_GETADDITIONALCARETSBLINK>`_

.. method:: Editor.setAdditionalCaretsVisible(additionalCaretsBlink)

   Set whether additional carets are visible

   See Scintilla documentation for `SCI_SETADDITIONALCARETSVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETADDITIONALCARETSVISIBLE>`_

.. method:: Editor.getAdditionalCaretsVisible() -> bool

   Whether additional carets are visible

   See Scintilla documentation for `SCI_GETADDITIONALCARETSVISIBLE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETADDITIONALCARETSVISIBLE>`_

.. method:: Editor.getSelections() -> int

   How many selections are there?

   See Scintilla documentation for `SCI_GETSELECTIONS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONS>`_

.. method:: Editor.getSelectionEmpty() -> bool

   Is every selected range empty?

   See Scintilla documentation for `SCI_GETSELECTIONEMPTY <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONEMPTY>`_

.. method:: Editor.clearSelections()

   Clear selections to a single empty stream selection

   See Scintilla documentation for `SCI_CLEARSELECTIONS <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARSELECTIONS>`_

.. method:: Editor.setSelection(caret, anchor) -> int

   Set a simple selection

   See Scintilla documentation for `SCI_SETSELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTION>`_

.. method:: Editor.addSelection(caret, anchor) -> int

   Add a selection

   See Scintilla documentation for `SCI_ADDSELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_ADDSELECTION>`_

.. method:: Editor.dropSelectionN(selection)

   Drop one selection

   See Scintilla documentation for `SCI_DROPSELECTIONN <http://www.scintilla.org/ScintillaDoc.html#SCI_DROPSELECTIONN>`_

.. method:: Editor.setMainSelection(selection)

   Set the main selection

   See Scintilla documentation for `SCI_SETMAINSELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETMAINSELECTION>`_

.. method:: Editor.getMainSelection() -> int

   Which selection is the main selection

   See Scintilla documentation for `SCI_GETMAINSELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETMAINSELECTION>`_

.. method:: Editor.setSelectionNCaret(selection, pos)

   Which selection is the main selection

   See Scintilla documentation for `SCI_SETSELECTIONNCARET <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONNCARET>`_

.. method:: Editor.getSelectionNCaret(selection) -> int

   Which selection is the main selection

   See Scintilla documentation for `SCI_GETSELECTIONNCARET <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONNCARET>`_

.. method:: Editor.setSelectionNAnchor(selection, posAnchor)

   Which selection is the main selection

   See Scintilla documentation for `SCI_SETSELECTIONNANCHOR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONNANCHOR>`_

.. method:: Editor.getSelectionNAnchor(selection) -> int

   Which selection is the main selection

   See Scintilla documentation for `SCI_GETSELECTIONNANCHOR <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONNANCHOR>`_

.. method:: Editor.setSelectionNCaretVirtualSpace(selection, space)

   Which selection is the main selection

   See Scintilla documentation for `SCI_SETSELECTIONNCARETVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONNCARETVIRTUALSPACE>`_

.. method:: Editor.getSelectionNCaretVirtualSpace(selection) -> int

   Which selection is the main selection

   See Scintilla documentation for `SCI_GETSELECTIONNCARETVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONNCARETVIRTUALSPACE>`_

.. method:: Editor.setSelectionNAnchorVirtualSpace(selection, space)

   Which selection is the main selection

   See Scintilla documentation for `SCI_SETSELECTIONNANCHORVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONNANCHORVIRTUALSPACE>`_

.. method:: Editor.getSelectionNAnchorVirtualSpace(selection) -> int

   Which selection is the main selection

   See Scintilla documentation for `SCI_GETSELECTIONNANCHORVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONNANCHORVIRTUALSPACE>`_

.. method:: Editor.setSelectionNStart(selection, pos)

   Sets the position that starts the selection - this becomes the anchor.

   See Scintilla documentation for `SCI_SETSELECTIONNSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONNSTART>`_

.. method:: Editor.getSelectionNStart(selection) -> int

   Returns the position at the start of the selection.

   See Scintilla documentation for `SCI_GETSELECTIONNSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONNSTART>`_

.. method:: Editor.setSelectionNEnd(selection, pos)

   Sets the position that ends the selection - this becomes the currentPosition.

   See Scintilla documentation for `SCI_SETSELECTIONNEND <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONNEND>`_

.. method:: Editor.getSelectionNEnd(selection) -> int

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_GETSELECTIONNEND <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONNEND>`_

.. method:: Editor.setRectangularSelectionCaret(pos)

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_SETRECTANGULARSELECTIONCARET <http://www.scintilla.org/ScintillaDoc.html#SCI_SETRECTANGULARSELECTIONCARET>`_

.. method:: Editor.getRectangularSelectionCaret() -> int

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_GETRECTANGULARSELECTIONCARET <http://www.scintilla.org/ScintillaDoc.html#SCI_GETRECTANGULARSELECTIONCARET>`_

.. method:: Editor.setRectangularSelectionAnchor(posAnchor)

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_SETRECTANGULARSELECTIONANCHOR <http://www.scintilla.org/ScintillaDoc.html#SCI_SETRECTANGULARSELECTIONANCHOR>`_

.. method:: Editor.getRectangularSelectionAnchor() -> int

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_GETRECTANGULARSELECTIONANCHOR <http://www.scintilla.org/ScintillaDoc.html#SCI_GETRECTANGULARSELECTIONANCHOR>`_

.. method:: Editor.setRectangularSelectionCaretVirtualSpace(space)

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE>`_

.. method:: Editor.getRectangularSelectionCaretVirtualSpace() -> int

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE>`_

.. method:: Editor.setRectangularSelectionAnchorVirtualSpace(space)

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE>`_

.. method:: Editor.getRectangularSelectionAnchorVirtualSpace() -> int

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE>`_

.. method:: Editor.setVirtualSpaceOptions(virtualSpaceOptions)

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_SETVIRTUALSPACEOPTIONS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETVIRTUALSPACEOPTIONS>`_

.. method:: Editor.getVirtualSpaceOptions() -> int

   Returns the position at the end of the selection.

   See Scintilla documentation for `SCI_GETVIRTUALSPACEOPTIONS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETVIRTUALSPACEOPTIONS>`_

.. method:: Editor.setRectangularSelectionModifier(modifier)

   On GTK+, allow selecting the modifier key to use for mouse-based
   rectangular selection. Often the window manager requires Alt+Mouse Drag
   for moving windows.
   Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.

   See Scintilla documentation for `SCI_SETRECTANGULARSELECTIONMODIFIER <http://www.scintilla.org/ScintillaDoc.html#SCI_SETRECTANGULARSELECTIONMODIFIER>`_

.. method:: Editor.getRectangularSelectionModifier() -> int

   Get the modifier key used for rectangular selection.

   See Scintilla documentation for `SCI_GETRECTANGULARSELECTIONMODIFIER <http://www.scintilla.org/ScintillaDoc.html#SCI_GETRECTANGULARSELECTIONMODIFIER>`_

.. method:: Editor.setAdditionalSelFore(fore)

   Set the foreground colour of additional selections.
   Must have previously called SetSelFore with non-zero first argument for this to have an effect.

   See Scintilla documentation for `SCI_SETADDITIONALSELFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETADDITIONALSELFORE>`_

.. method:: Editor.setAdditionalSelBack(back)

   Set the background colour of additional selections.
   Must have previously called SetSelBack with non-zero first argument for this to have an effect.

   See Scintilla documentation for `SCI_SETADDITIONALSELBACK <http://www.scintilla.org/ScintillaDoc.html#SCI_SETADDITIONALSELBACK>`_

.. method:: Editor.setAdditionalSelAlpha(alpha)

   Set the alpha of the selection.

   See Scintilla documentation for `SCI_SETADDITIONALSELALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_SETADDITIONALSELALPHA>`_

.. method:: Editor.getAdditionalSelAlpha() -> int

   Get the alpha of the selection.

   See Scintilla documentation for `SCI_GETADDITIONALSELALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_GETADDITIONALSELALPHA>`_

.. method:: Editor.setAdditionalCaretFore(fore)

   Set the foreground colour of additional carets.

   See Scintilla documentation for `SCI_SETADDITIONALCARETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETADDITIONALCARETFORE>`_

.. method:: Editor.getAdditionalCaretFore() -> tuple

   Get the foreground colour of additional carets.

   See Scintilla documentation for `SCI_GETADDITIONALCARETFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETADDITIONALCARETFORE>`_

.. method:: Editor.rotateSelection()

   Set the main selection to the next selection.

   See Scintilla documentation for `SCI_ROTATESELECTION <http://www.scintilla.org/ScintillaDoc.html#SCI_ROTATESELECTION>`_

.. method:: Editor.swapMainAnchorCaret()

   Swap that caret and anchor of the main selection.

   See Scintilla documentation for `SCI_SWAPMAINANCHORCARET <http://www.scintilla.org/ScintillaDoc.html#SCI_SWAPMAINANCHORCARET>`_

.. method:: Editor.changeLexerState(start, end) -> int

   Indicate that the internal state of a lexer has changed over a range and therefore
   there may be a need to redraw.

   See Scintilla documentation for `SCI_CHANGELEXERSTATE <http://www.scintilla.org/ScintillaDoc.html#SCI_CHANGELEXERSTATE>`_

.. method:: Editor.contractedFoldNext(lineStart) -> int

   Find the next line at or after lineStart that is a contracted fold header line.
   Return -1 when no more lines.

   See Scintilla documentation for `SCI_CONTRACTEDFOLDNEXT <http://www.scintilla.org/ScintillaDoc.html#SCI_CONTRACTEDFOLDNEXT>`_

.. method:: Editor.verticalCentreCaret()

   Centre current line in window.

   See Scintilla documentation for `SCI_VERTICALCENTRECARET <http://www.scintilla.org/ScintillaDoc.html#SCI_VERTICALCENTRECARET>`_

.. method:: Editor.moveSelectedLinesUp()

   Move the selected lines up one line, shifting the line above after the selection

   See Scintilla documentation for `SCI_MOVESELECTEDLINESUP <http://www.scintilla.org/ScintillaDoc.html#SCI_MOVESELECTEDLINESUP>`_

.. method:: Editor.moveSelectedLinesDown()

   Move the selected lines down one line, shifting the line below before the selection

   See Scintilla documentation for `SCI_MOVESELECTEDLINESDOWN <http://www.scintilla.org/ScintillaDoc.html#SCI_MOVESELECTEDLINESDOWN>`_

.. method:: Editor.setIdentifier(identifier)

   Set the identifier reported as idFrom in notification messages.

   See Scintilla documentation for `SCI_SETIDENTIFIER <http://www.scintilla.org/ScintillaDoc.html#SCI_SETIDENTIFIER>`_

.. method:: Editor.getIdentifier() -> int

   Get the identifier.

   See Scintilla documentation for `SCI_GETIDENTIFIER <http://www.scintilla.org/ScintillaDoc.html#SCI_GETIDENTIFIER>`_

.. method:: Editor.rGBAImageSetWidth(width)

   Set the width for future RGBA image data.

   See Scintilla documentation for `SCI_RGBAIMAGESETWIDTH <http://www.scintilla.org/ScintillaDoc.html#SCI_RGBAIMAGESETWIDTH>`_

.. method:: Editor.rGBAImageSetHeight(height)

   Set the height for future RGBA image data.

   See Scintilla documentation for `SCI_RGBAIMAGESETHEIGHT <http://www.scintilla.org/ScintillaDoc.html#SCI_RGBAIMAGESETHEIGHT>`_

.. method:: Editor.rGBAImageSetScale(scalePercent)

   Set the scale factor in percent for future RGBA image data.

   See Scintilla documentation for `SCI_RGBAIMAGESETSCALE <http://www.scintilla.org/ScintillaDoc.html#SCI_RGBAIMAGESETSCALE>`_

.. method:: Editor.markerDefineRGBAImage(markerNumber, pixels)

   Define a marker from RGBA data.
   It has the width and height from RGBAImageSetWidth/Height

   See Scintilla documentation for `SCI_MARKERDEFINERGBAIMAGE <http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERDEFINERGBAIMAGE>`_

.. method:: Editor.registerRGBAImage(type, pixels)

   Register an RGBA image for use in autocompletion lists.
   It has the width and height from RGBAImageSetWidth/Height

   See Scintilla documentation for `SCI_REGISTERRGBAIMAGE <http://www.scintilla.org/ScintillaDoc.html#SCI_REGISTERRGBAIMAGE>`_

.. method:: Editor.scrollToStart()

   Scroll to start of document.

   See Scintilla documentation for `SCI_SCROLLTOSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_SCROLLTOSTART>`_

.. method:: Editor.scrollToEnd()

   Scroll to end of document.

   See Scintilla documentation for `SCI_SCROLLTOEND <http://www.scintilla.org/ScintillaDoc.html#SCI_SCROLLTOEND>`_

.. method:: Editor.setTechnology(technology)

   Set the technology used.

   See Scintilla documentation for `SCI_SETTECHNOLOGY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETTECHNOLOGY>`_

.. method:: Editor.getTechnology() -> int

   Get the tech.

   See Scintilla documentation for `SCI_GETTECHNOLOGY <http://www.scintilla.org/ScintillaDoc.html#SCI_GETTECHNOLOGY>`_

.. method:: Editor.createLoader(bytes) -> int

   Create an ILoader*.

   See Scintilla documentation for `SCI_CREATELOADER <http://www.scintilla.org/ScintillaDoc.html#SCI_CREATELOADER>`_

.. method:: Editor.findIndicatorShow(start, end)

   On OS X, show a find indicator.

   See Scintilla documentation for `SCI_FINDINDICATORSHOW <http://www.scintilla.org/ScintillaDoc.html#SCI_FINDINDICATORSHOW>`_

.. method:: Editor.findIndicatorFlash(start, end)

   On OS X, flash a find indicator, then fade out.

   See Scintilla documentation for `SCI_FINDINDICATORFLASH <http://www.scintilla.org/ScintillaDoc.html#SCI_FINDINDICATORFLASH>`_

.. method:: Editor.findIndicatorHide()

   On OS X, hide the find indicator.

   See Scintilla documentation for `SCI_FINDINDICATORHIDE <http://www.scintilla.org/ScintillaDoc.html#SCI_FINDINDICATORHIDE>`_

.. method:: Editor.vCHomeDisplay()

   Move caret to before first visible character on display line.
   If already there move to first character on display line.

   See Scintilla documentation for `SCI_VCHOMEDISPLAY <http://www.scintilla.org/ScintillaDoc.html#SCI_VCHOMEDISPLAY>`_

.. method:: Editor.vCHomeDisplayExtend()

   Like VCHomeDisplay but extending selection to new caret position.

   See Scintilla documentation for `SCI_VCHOMEDISPLAYEXTEND <http://www.scintilla.org/ScintillaDoc.html#SCI_VCHOMEDISPLAYEXTEND>`_

.. method:: Editor.getCaretLineVisibleAlways() -> bool

   Is the caret line always visible?

   See Scintilla documentation for `SCI_GETCARETLINEVISIBLEALWAYS <http://www.scintilla.org/ScintillaDoc.html#SCI_GETCARETLINEVISIBLEALWAYS>`_

.. method:: Editor.setCaretLineVisibleAlways(alwaysVisible)

   Sets the caret line to always visible.

   See Scintilla documentation for `SCI_SETCARETLINEVISIBLEALWAYS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETCARETLINEVISIBLEALWAYS>`_

.. method:: Editor.setLineEndTypesAllowed(lineEndBitSet)

   Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding.

   See Scintilla documentation for `SCI_SETLINEENDTYPESALLOWED <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLINEENDTYPESALLOWED>`_

.. method:: Editor.getLineEndTypesAllowed() -> int

   Get the line end types currently allowed.

   See Scintilla documentation for `SCI_GETLINEENDTYPESALLOWED <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEENDTYPESALLOWED>`_

.. method:: Editor.getLineEndTypesActive() -> int

   Get the line end types currently recognised. May be a subset of the allowed types due to lexer limitation.

   See Scintilla documentation for `SCI_GETLINEENDTYPESACTIVE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEENDTYPESACTIVE>`_

.. method:: Editor.setRepresentation(encodedCharacter, representation)

   Set the way a character is drawn.

   See Scintilla documentation for `SCI_SETREPRESENTATION <http://www.scintilla.org/ScintillaDoc.html#SCI_SETREPRESENTATION>`_

.. method:: Editor.getRepresentation(encodedCharacter) -> str

   Get the way a character is drawn.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETREPRESENTATION <http://www.scintilla.org/ScintillaDoc.html#SCI_GETREPRESENTATION>`_

.. method:: Editor.clearRepresentation(encodedCharacter)

   Remove a character representation.

   See Scintilla documentation for `SCI_CLEARREPRESENTATION <http://www.scintilla.org/ScintillaDoc.html#SCI_CLEARREPRESENTATION>`_

.. method:: Editor.startRecord()

   Start notifying the container of all key presses and commands.

   See Scintilla documentation for `SCI_STARTRECORD <http://www.scintilla.org/ScintillaDoc.html#SCI_STARTRECORD>`_

.. method:: Editor.stopRecord()

   Stop notifying the container of all key presses and commands.

   See Scintilla documentation for `SCI_STOPRECORD <http://www.scintilla.org/ScintillaDoc.html#SCI_STOPRECORD>`_

.. method:: Editor.setLexer(lexer)

   Set the lexing language of the document.

   See Scintilla documentation for `SCI_SETLEXER <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLEXER>`_

.. method:: Editor.getLexer() -> int

   Retrieve the lexing language of the document.

   See Scintilla documentation for `SCI_GETLEXER <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLEXER>`_

.. method:: Editor.colourise(start, end)

   Colourise a segment of the document using the current lexing language.

   See Scintilla documentation for `SCI_COLOURISE <http://www.scintilla.org/ScintillaDoc.html#SCI_COLOURISE>`_

.. method:: Editor.setProperty(key, value)

   Set up a value that may be used by a lexer for some optional feature.

   See Scintilla documentation for `SCI_SETPROPERTY <http://www.scintilla.org/ScintillaDoc.html#SCI_SETPROPERTY>`_

.. method:: Editor.setKeyWords(keywordSet, keyWords)

   Set up the key words used by the lexer.

   See Scintilla documentation for `SCI_SETKEYWORDS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETKEYWORDS>`_

.. method:: Editor.setLexerLanguage(language)

   Set the lexing language of the document based on string name.

   See Scintilla documentation for `SCI_SETLEXERLANGUAGE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLEXERLANGUAGE>`_

.. method:: Editor.loadLexerLibrary(path)

   Load a lexer library (dll / so).

   See Scintilla documentation for `SCI_LOADLEXERLIBRARY <http://www.scintilla.org/ScintillaDoc.html#SCI_LOADLEXERLIBRARY>`_

.. method:: Editor.getProperty(key) -> str

   Retrieve a "property" value previously set with SetProperty.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETPROPERTY <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPROPERTY>`_

.. method:: Editor.getPropertyExpanded(key) -> str

   Retrieve a "property" value previously set with SetProperty,
   with "$()" variable replacement on returned buffer.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETPROPERTYEXPANDED <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPROPERTYEXPANDED>`_

.. method:: Editor.getPropertyInt(key) -> int

   Retrieve a "property" value previously set with SetProperty,
   interpreted as an int AFTER any "$()" variable replacement.

   See Scintilla documentation for `SCI_GETPROPERTYINT <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPROPERTYINT>`_

.. method:: Editor.getStyleBitsNeeded() -> int

   Retrieve the number of bits the current lexer needs for styling.

   See Scintilla documentation for `SCI_GETSTYLEBITSNEEDED <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSTYLEBITSNEEDED>`_

.. method:: Editor.getLexerLanguage() -> str

   Retrieve the name of the lexer.
   Return the length of the text.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETLEXERLANGUAGE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLEXERLANGUAGE>`_

.. method:: Editor.privateLexerCall(operation, pointer) -> int

   For private communication between an application and a known lexer.

   See Scintilla documentation for `SCI_PRIVATELEXERCALL <http://www.scintilla.org/ScintillaDoc.html#SCI_PRIVATELEXERCALL>`_

.. method:: Editor.propertyNames() -> str

   Retrieve a '\\n' separated list of properties understood by the current lexer.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_PROPERTYNAMES <http://www.scintilla.org/ScintillaDoc.html#SCI_PROPERTYNAMES>`_

.. method:: Editor.propertyType(name) -> int

   Retrieve the type of a property.

   See Scintilla documentation for `SCI_PROPERTYTYPE <http://www.scintilla.org/ScintillaDoc.html#SCI_PROPERTYTYPE>`_

.. method:: Editor.describeProperty(name) -> str

   Describe a property.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_DESCRIBEPROPERTY <http://www.scintilla.org/ScintillaDoc.html#SCI_DESCRIBEPROPERTY>`_

.. method:: Editor.describeKeyWordSets() -> str

   Retrieve a '\\n' separated list of descriptions of the keyword sets understood by the current lexer.
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_DESCRIBEKEYWORDSETS <http://www.scintilla.org/ScintillaDoc.html#SCI_DESCRIBEKEYWORDSETS>`_

.. method:: Editor.getLineEndTypesSupported() -> int

   Bit set of LineEndType enumertion for which line ends beyond the standard
   LF, CR, and CRLF are supported by the lexer.

   See Scintilla documentation for `SCI_GETLINEENDTYPESSUPPORTED <http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEENDTYPESSUPPORTED>`_

.. method:: Editor.allocateSubStyles(styleBase, numberStyles) -> int

   Allocate a set of sub styles for a particular base style, returning start of range

   See Scintilla documentation for `SCI_ALLOCATESUBSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_ALLOCATESUBSTYLES>`_

.. method:: Editor.getSubStylesStart(styleBase) -> int

   The starting style number for the sub styles associated with a base style

   See Scintilla documentation for `SCI_GETSUBSTYLESSTART <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSUBSTYLESSTART>`_

.. method:: Editor.getSubStylesLength(styleBase) -> int

   The number of sub styles associated with a base style

   See Scintilla documentation for `SCI_GETSUBSTYLESLENGTH <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSUBSTYLESLENGTH>`_

.. method:: Editor.getStyleFromSubStyle(subStyle) -> int

   For a sub style, return the base style, else return the argument.

   See Scintilla documentation for `SCI_GETSTYLEFROMSUBSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSTYLEFROMSUBSTYLE>`_

.. method:: Editor.getPrimaryStyleFromStyle(style) -> int

   For a secondary style, return the primary style, else return the argument.

   See Scintilla documentation for `SCI_GETPRIMARYSTYLEFROMSTYLE <http://www.scintilla.org/ScintillaDoc.html#SCI_GETPRIMARYSTYLEFROMSTYLE>`_

.. method:: Editor.freeSubStyles()

   Free allocated sub styles

   See Scintilla documentation for `SCI_FREESUBSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_FREESUBSTYLES>`_

.. method:: Editor.setIdentifiers(style, identifiers)

   Set the identifiers that are shown in a particular style

   See Scintilla documentation for `SCI_SETIDENTIFIERS <http://www.scintilla.org/ScintillaDoc.html#SCI_SETIDENTIFIERS>`_

.. method:: Editor.distanceToSecondaryStyles() -> int

   Where styles are duplicated by a feature such as active/inactive code
   return the distance between the two types.

   See Scintilla documentation for `SCI_DISTANCETOSECONDARYSTYLES <http://www.scintilla.org/ScintillaDoc.html#SCI_DISTANCETOSECONDARYSTYLES>`_

.. method:: Editor.getSubStyleBases() -> str

   Get the set of base styles that can be extended with sub styles
   Result is NUL-terminated.

   See Scintilla documentation for `SCI_GETSUBSTYLEBASES <http://www.scintilla.org/ScintillaDoc.html#SCI_GETSUBSTYLEBASES>`_

.. End of Autogeneration /* --Autogenerated ---- */


.. _Helper Methods:

Helper Methods
--------------

.. method:: Editor.forEachLine(function)

   Runs the function passed for each line in the current document.  
   The function gets passed 3 arguments, the contents of the line, the line number (starting from zero), and the total number of lines.  
   If the function returns a number, that number is added to the current line number for the next iteration.
   
   That way, if you delete the current line, you should return 0, so as to stay on the current physical line.
   
   Under normal circumstances, you do not need to return anything from the function (i.e. None)

   e.g.::
   
		def testContents(contents, lineNumber, totalLines):
			if contents.strip() == "rubbish":
				editor.deleteLine(lineNumber)
				# As we've deleted the line, the "next" line to process
				# is actually the current line, so we return 0 to advance zero lines
				# and hence stay on the same line
				return 0
				
			elif contents.strip() == "something old":
				editor.replaceLine(lineNumber, "something new")
				
			elif contents.strip() == "little something":
				editor.replaceLine(lineNumber, "BIG\nSOMETHING"
				# Here we return 2, as we've inserted a newline, 
				# and we don't want to test the "SOMETHING" line again
				return 2
			
			# if you wanted, you could optionally return 1 here, to move the next line
			# but that's the default, so you don't need to bother.
			
			
		editor.forEachLine(testContents)
		
		
		
   

.. method:: Editor.deleteLine(line)

   Deletes the given (zero indexed) line number.


.. method:: Editor.replaceLine(line, newContents)

   Replaces the given (zero indexed) line number with the given contents. 
   e.g.::
		
		editor.replaceLine(3, "New contents")


.. method:: Editor.replaceWholeLine(line, newContents)

   Replaces the given (zero indexed) line number with the given contents, including the line break 
   (ie. the line break from the old line is removed, no line break on the replacement will result in joining lines). 
   
   e.g.::
		
		editor.replaceWholeLine(3, "New contents")


.. method:: Editor.setTarget(start, end)

   Sets the target start and end in one call. See :meth:`Editor.setTargetStart` and :meth:`Editor.setTargetEnd`


.. method:: Editor.getUserLineSelection() -> (startLine, endLine)

   Gets the start and end (zero indexed) line numbers of the user selection, or the whole document if nothing is selected.
   
   Useful if you want to run your script over a number of lines - using this allows the user to select nothing, and have the 
   script run for the whole document, or select just the section they want to run the script over.


.. method:: Editor.getUserCharSelection() -> (startByte, endByte)

   Gets the start and end (zero indexed) byte numbers of the user selection, or the whole document if nothing is selected.


.. method:: Editor.clearCallbacks()

   Clears all callbacks


.. method:: Editor.clearCallbacks(function)

   Clears all callbacks for a given function


.. method:: Editor.clearCallbacks(eventsList)

   Clears all callbacks for the given list of events


.. method:: Editor.clearCallbacks(function, eventsList)

   Clears the callback for the given callback function for the list of events

.. method:: Editor.callback(function, eventsList)

   Adds a handler for an ``Editor`` (Scintilla) event. The events list is a list of events to respond to, from the :class:`SCINTILLANOTIFICATION` enum.
   Documentation on notifications from Scintilla can be found here: http://www.scintilla.org/ScintillaDoc.html#Notifications

   For a simple example, here's a script that automatically saves the document as soon as a change is made::

     def saveCurrentDoc(args):
         notepad.save()
   
     editor.callback(saveCurrentDoc, [SCINTILLANOTIFICATION.SAVEPOINTLEFT])

   This script is not really sensible in real life, as for large files, it will take some time to save the file, and it will be saved after every key press.

   Note that ``Editor`` callbacks are processed *asynchronously* by default. What this means in practice is that your event handler function 
   (saveCurrentDoc in the previous example) is called just after the event has fired.  If the callback handler is slow, and the callbacks occur quickly, you
   could get "behind".  Callbacks are placed in a queue and processed in the order they arrived.  If you need to do something before letting the user continue, you 
   can use :meth:`Editor.callbackSync`, which adds a synchronous callback.


.. method:: Editor.callbackSync(function, eventsList)

   Adds a *synchronous* handler for an ``Editor`` (Scintilla) event. The events list is a list of events to respond to, from the :class:`SCINTILLANOTIFICATION` enum.

   What this means is that the handler function is called, and must complete, before control is returned to the user.  If you perform a slow operation in your handler
   function, this will have an effect on the speed of Notepad++ for the user (i.e. Notepad++ may appear to have "locked up", whilst your event processes). 

   Synchronous callbacks are mostly used for calling :meth:`Editor.autoCCancel` in response to :class:`SCINTILLANOTIFICATION.AUTOCSELECTION`, but could be used for 
   anything where the timing of the handler function is critical.


.. method:: Editor.replace(search, replace[, flags[, startPosition[, endPosition[, maxCount]]]])

   See :meth:`Editor.rereplace`, as this method is identical, with the exception that the search string is treated literally, 
   and not as a regular expression.

   If you use a function as the replace argument, the function will still receive a ``re.MatchObject`` like object as the parameter,
   ``group(0)`` will therefore always contain the string searched for (possibly in a different case if ``re.IGNORECASE`` was passed in the flags)

   For example::

   
     counter = 0

     def get_counter(m):
         global counter
         counter += 1
         return 'C' + str(counter)

     editor.replace('(x)', get_counter, re.IGNORECASE)

     # Replacing:
     #
     #     This (x) is some (X) text.  The bracketed X's will (x) get numerical replacements
     #
     # results in
     #
     #     This C1 is some C2 text.  The bracketed X's will C3 get numerical replacements




.. method:: Editor.rereplace(search, replace[, flags[, startPosition[, endPosition[, maxCount]]]])

   The main search and replace method, using regular expressions.  The regular expression syntax in use is 
   that from Notepad++, which is actually the `Boost::Regex <http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/index.html>`_ 
   implementation (specifically the Perl regular expression syntax). 


   ``flags`` are from the re module (e.g. ``re.IGNORECASE``), so ``import re`` if you use the flags.  
   
   The ``re.MULTILINE`` flag is automatically set, so ``^`` matches the start of each line of the document, and
   ``$`` the end of each line.  If you want to ``^`` and ``$`` to match the start and end of the whole document,
   you can override the behaviour by adding in the ``editor.WHOLEDOC`` flag.  

   Note that line endings are now handled automatically.

   ``search`` can be a string, a unicode string, or an object. An object will be converted to a string using it's ``__str__`` method.
   For a unicode string, the current document encoding is checked, and an attempt is made at a conversion.  If the conversion cannot be 
   successfully performed, an error occurs. When a standard Python string is used, no conversion takes place. If you need to replace 
   strings in documents in both UTF-8 and ANSI (or other single byte encodings), then it's best to pass unicode strings.

   ``replace`` follows the same conversion rules as ``search``.  However, you can also pass a function or lambda expression 
   as the ``replace`` parameter.  This function receives a single parameter, which is an object resembling a re.MatchObject instance.
   It only resembles an re.MatchObject because it doesn't support all the methods. Specifically, ``groupdict()``, ``pos``, ``endpos``, ``re`` and ``string``
   methods and properties are not supported.  ``expand()``, ``group()`` and ``groups()`` (for example) all work identically.  The function should 
   return the string to use as the replacement.

   A simple function replacement::

     def add_1(m):
         return 'Y' + str(number(m.group(1)) + 1)

     # replace X followed by numbers by an incremented number
     # e.g.   X56 X39 X999 
     #          becomes 
     #        Y57 Y40 Y1000

     editor.rereplace('X([0-9]+)', add_1);

   ``startPosition`` is the binary position to start the search.  Use :meth:`Editor.positionFromLine` 
   to get the binary position from the (zero indexed) line number.

   ``endPosition`` is the binary position to end the search. Use :meth:`Editor.positionFromLine` 
   to get the binary position from the (zero indexed) line number.

   A maximum of ``count`` replacements are made, if zero or None, then all replacements are made.
   
   
   An small point to note, is that the replacements are first searched, and then all replacements are made.
   This is done for performance and reliability reasons.  Generally this will have no side effects, however there
   may be cases where it makes a difference. (Author's note: If you have such a case, please post a note on the forums
   such that it can be added to the documentation, or corrected).

.. method:: Editor.research(search, matchFunction[, flags[, startPosition[, endPosition[, maxCount]]]])

   The main search method, using regular expressions.  The regular expression syntax in use is 
   that from Notepad++, which is actually the `Boost::Regex <http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/index.html>`_ 
   implementation (specifically the Perl regular expression syntax). 

   ``flags`` are from the re module (e.g. ``re.IGNORECASE``), so ``import re`` if you use the flags.  
   
   The ``re.MULTILINE`` flag is automatically set, so ``^`` matches the start of each line of the document, and
   ``$`` the end of each line.  If you want to ``^`` and ``$`` to match the start and end of the whole document,
   you can override the behaviour by adding in the ``editor.WHOLEDOC`` flag.  

   Note that line endings are now handled automatically.

   ``search`` can be a string, a unicode string, or an object. An object will be converted to a string using it's ``__str__`` method.
   For a unicode string, the current document encoding is checked, and an attempt is made at a conversion.  If the conversion cannot be 
   successfully performed, an error occurs. When a standard Python string is used, no conversion takes place. If you need to replace 
   strings in documents in both UTF-8 and ANSI (or other single byte encodings), then it's best to pass unicode strings.

   ``matchFunction`` is a function that gets callled with each match.  This function receives a single parameter, which is an object resembling a re.MatchObject instance.
   It only resembles an re.MatchObject because it doesn't support all the methods. Specifically, ``groupdict()``, ``pos``, ``endpos``, ``re`` and ``string``
   methods and properties are not supported.  ``expand()``, ``group()`` and ``groups()`` (for example) all work identically.  The function should 
   return the string to use as the replacement.

   A simple function replacement::

     matches = []
     def match_found(m):
         # append the match (start, end) positions to the matches array
         matches.append(m.span(0))

     # find X followed by numbers
     # e.g.   X56 X39 X999 
     
     editor.research('X([0-9]+)', match_found)

   You can do the same thing with a lambda expression::

     matches = []

     editor.research('X([0-9]+)', lambda m: matches.append(m.span(0)))




   ``startPosition`` is the binary position to start the search.  Use :meth:`Editor.positionFromLine` 
   to get the binary position from the (zero indexed) line number.

   ``endPosition`` is the binary position to end the search. Use :meth:`Editor.positionFromLine` 
   to get the binary position from the (zero indexed) line number.

   If ``maxCount`` is not zero or None, then the search stops as soon as ``maxCount`` matches have been found.

   
.. method:: Editor.pyreplace(search, replace[, count[, flags[, startLine[, endLine]]]])

   This method has been removed from version 1.0. It was last present in version 0.9.2.0

   You should use :meth:`Editor.rereplace`.

   
	
   
.. _pymlreplace:
.. method:: Editor.pymlreplace(search, replace[, count[, flags[, startPosition[, endPosition]]]])

   This method has been removed from version 1.0. It was last present in version 0.9.2.0

   You should use :meth:`Editor.rereplace`.

   
.. method:: Editor.pysearch(expression, function[, flags[, startLine[, endLine]]])

   This method has been removed from version 1.0. It was last present in version 0.9.2.0

   You should use :meth:`Editor.research`.


.. method:: Editor.pymlsearch(expression, function[, flags[, startPosition[, endPosition]]])

   This method has been removed from version 1.0. It was last present in version 0.9.2.0

   You should use :meth:`Editor.research`.

		