|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.QScintilla.Lexers.LexerDiff</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.QScintilla.Lexers.LexerDiff</h1> |
|
23 <p> |
|
24 Module implementing a Diff lexer with some additional methods. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#LexerDiff">LexerDiff</a></td> |
|
34 <td>Subclass to implement some additional lexer dependant methods.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="LexerDiff" ID="LexerDiff"></a> |
|
43 <h2>LexerDiff</h2> |
|
44 <p> |
|
45 Subclass to implement some additional lexer dependant methods. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 Lexer, QsciLexerDiff |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#LexerDiff.__init__">LexerDiff</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#LexerDiff.defaultKeywords">defaultKeywords</a></td> |
|
64 <td>Public method to get the default keywords.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#LexerDiff.isCommentStyle">isCommentStyle</a></td> |
|
67 <td>Public method to check, if a style is a comment style.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#LexerDiff.isStringStyle">isStringStyle</a></td> |
|
70 <td>Public method to check, if a style is a string style.</td> |
|
71 </tr> |
|
72 </table> |
|
73 <h3>Static Methods</h3> |
|
74 <table> |
|
75 <tr><td>None</td></tr> |
|
76 </table> |
|
77 <a NAME="LexerDiff.__init__" ID="LexerDiff.__init__"></a> |
|
78 <h4>LexerDiff (Constructor)</h4> |
|
79 <b>LexerDiff</b>(<i>parent=None</i>) |
|
80 <p> |
|
81 Constructor |
|
82 </p><dl> |
|
83 <dt><i>parent</i></dt> |
|
84 <dd> |
|
85 parent widget of this lexer |
|
86 </dd> |
|
87 </dl><a NAME="LexerDiff.defaultKeywords" ID="LexerDiff.defaultKeywords"></a> |
|
88 <h4>LexerDiff.defaultKeywords</h4> |
|
89 <b>defaultKeywords</b>(<i>kwSet</i>) |
|
90 <p> |
|
91 Public method to get the default keywords. |
|
92 </p><dl> |
|
93 <dt><i>kwSet</i></dt> |
|
94 <dd> |
|
95 number of the keyword set (integer) |
|
96 </dd> |
|
97 </dl><dl> |
|
98 <dt>Returns:</dt> |
|
99 <dd> |
|
100 string giving the keywords (string) or None |
|
101 </dd> |
|
102 </dl><a NAME="LexerDiff.isCommentStyle" ID="LexerDiff.isCommentStyle"></a> |
|
103 <h4>LexerDiff.isCommentStyle</h4> |
|
104 <b>isCommentStyle</b>(<i>style</i>) |
|
105 <p> |
|
106 Public method to check, if a style is a comment style. |
|
107 </p><dl> |
|
108 <dt><i>style</i></dt> |
|
109 <dd> |
|
110 style to check (integer) |
|
111 </dd> |
|
112 </dl><dl> |
|
113 <dt>Returns:</dt> |
|
114 <dd> |
|
115 flag indicating a comment style (boolean) |
|
116 </dd> |
|
117 </dl><a NAME="LexerDiff.isStringStyle" ID="LexerDiff.isStringStyle"></a> |
|
118 <h4>LexerDiff.isStringStyle</h4> |
|
119 <b>isStringStyle</b>(<i>style</i>) |
|
120 <p> |
|
121 Public method to check, if a style is a string style. |
|
122 </p><dl> |
|
123 <dt><i>style</i></dt> |
|
124 <dd> |
|
125 style to check (integer) |
|
126 </dd> |
|
127 </dl><dl> |
|
128 <dt>Returns:</dt> |
|
129 <dd> |
|
130 flag indicating a string style (boolean) |
|
131 </dd> |
|
132 </dl> |
|
133 <div align="right"><a href="#top">Up</a></div> |
|
134 <hr /> |
|
135 </body></html> |