--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.QScintilla.Lexers.LexerPython.html Sat Jan 02 18:19:35 2010 +0000 @@ -0,0 +1,132 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.QScintilla.Lexers.LexerPython</title> +<style> +b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.QScintilla.Lexers.LexerPython</h1> +<p> +Module implementing a Python lexer with some additional methods. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#LexerPython">LexerPython</a></td> +<td>Subclass to implement some additional lexer dependant methods.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="LexerPython" ID="LexerPython"></a> +<h2>LexerPython</h2> +<p> + +</p><p> + Subclass to implement some additional lexer dependant methods. +</p> +<h3>Derived from</h3> +QsciLexerPython, Lexer +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#LexerPython.__init__">LexerPython</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#LexerPython.autoCompletionWordSeparators">autoCompletionWordSeparators</a></td> +<td>Public method to return the list of separators for autocompletion.</td> +</tr><tr> +<td><a href="#LexerPython.getIndentationDifference">getIndentationDifference</a></td> +<td>Private method to determine the difference for the new indentation.</td> +</tr><tr> +<td><a href="#LexerPython.initProperties">initProperties</a></td> +<td>Public slot to initialize the properties.</td> +</tr><tr> +<td><a href="#LexerPython.isCommentStyle">isCommentStyle</a></td> +<td>Public method to check, if a style is a comment style.</td> +</tr><tr> +<td><a href="#LexerPython.isStringStyle">isStringStyle</a></td> +<td>Public method to check, if a style is a string style.</td> +</tr> +</table> +<a NAME="LexerPython.__init__" ID="LexerPython.__init__"></a> +<h4>LexerPython (Constructor)</h4> +<b>LexerPython</b>(<i>parent=None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +parent widget of this lexer +</dd> +</dl><a NAME="LexerPython.autoCompletionWordSeparators" ID="LexerPython.autoCompletionWordSeparators"></a> +<h4>LexerPython.autoCompletionWordSeparators</h4> +<b>autoCompletionWordSeparators</b>(<i></i>) +<p> + Public method to return the list of separators for autocompletion. +</p><dl> +<dt>Returns:</dt> +<dd> +list of separators (list of strings) +</dd> +</dl><a NAME="LexerPython.getIndentationDifference" ID="LexerPython.getIndentationDifference"></a> +<h4>LexerPython.getIndentationDifference</h4> +<b>getIndentationDifference</b>(<i>line, editor</i>) +<p> + Private method to determine the difference for the new indentation. +</p><dl> +<dt><i>line</i></dt> +<dd> +line to perform the calculation for (integer) +</dd><dt><i>editor</i></dt> +<dd> +QScintilla editor +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +amount of difference in indentation (integer) +</dd> +</dl><a NAME="LexerPython.initProperties" ID="LexerPython.initProperties"></a> +<h4>LexerPython.initProperties</h4> +<b>initProperties</b>(<i></i>) +<p> + Public slot to initialize the properties. +</p><a NAME="LexerPython.isCommentStyle" ID="LexerPython.isCommentStyle"></a> +<h4>LexerPython.isCommentStyle</h4> +<b>isCommentStyle</b>(<i>style</i>) +<p> + Public method to check, if a style is a comment style. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating a comment style (boolean) +</dd> +</dl><a NAME="LexerPython.isStringStyle" ID="LexerPython.isStringStyle"></a> +<h4>LexerPython.isStringStyle</h4> +<b>isStringStyle</b>(<i>style</i>) +<p> + Public method to check, if a style is a string style. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating a string style (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file