5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.QScintilla.Lexers.LexerHTML</h1> |
9 <h1>eric7.QScintilla.Lexers.LexerHTML</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a HTML lexer with some additional methods. |
11 Module implementing a HTML lexer with some additional methods. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#LexerHTML">LexerHTML</a></td> |
22 <td><a href="#LexerHTML">LexerHTML</a></td> |
25 <td>Subclass to implement some additional lexer dependant methods.</td> |
23 <td>Subclass to implement some additional lexer dependant methods.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
|
31 |
|
32 <tr> |
29 <tr> |
33 <td><a href="#createLexer">createLexer</a></td> |
30 <td><a href="#createLexer">createLexer</a></td> |
34 <td>Function to instantiate a lexer object.</td> |
31 <td>Function to instantiate a lexer object.</td> |
35 </tr> |
32 </tr> |
36 </table> |
33 </table> |
|
34 |
37 <hr /> |
35 <hr /> |
38 <hr /> |
36 <hr /> |
39 <a NAME="LexerHTML" ID="LexerHTML"></a> |
37 <a NAME="LexerHTML" ID="LexerHTML"></a> |
40 <h2>LexerHTML</h2> |
38 <h2>LexerHTML</h2> |
41 |
|
42 <p> |
39 <p> |
43 Subclass to implement some additional lexer dependant methods. |
40 Subclass to implement some additional lexer dependant methods. |
44 </p> |
41 </p> |
|
42 |
45 <h3>Derived from</h3> |
43 <h3>Derived from</h3> |
46 Lexer, QsciLexerHTML |
44 Lexer, QsciLexerHTML |
47 <h3>Class Attributes</h3> |
45 <h3>Class Attributes</h3> |
48 |
46 <table> |
49 <table> |
47 <tr><td>None</td></tr> |
50 <tr><td>None</td></tr> |
48 </table> |
51 </table> |
49 |
52 <h3>Class Methods</h3> |
50 <h3>Class Methods</h3> |
53 |
51 <table> |
54 <table> |
52 <tr><td>None</td></tr> |
55 <tr><td>None</td></tr> |
53 </table> |
56 </table> |
54 |
57 <h3>Methods</h3> |
55 <h3>Methods</h3> |
58 |
56 <table> |
59 <table> |
|
60 |
|
61 <tr> |
57 <tr> |
62 <td><a href="#LexerHTML.__init__">LexerHTML</a></td> |
58 <td><a href="#LexerHTML.__init__">LexerHTML</a></td> |
63 <td>Constructor</td> |
59 <td>Constructor</td> |
64 </tr> |
60 </tr> |
65 <tr> |
61 <tr> |
77 <tr> |
73 <tr> |
78 <td><a href="#LexerHTML.isStringStyle">isStringStyle</a></td> |
74 <td><a href="#LexerHTML.isStringStyle">isStringStyle</a></td> |
79 <td>Public method to check, if a style is a string style.</td> |
75 <td>Public method to check, if a style is a string style.</td> |
80 </tr> |
76 </tr> |
81 </table> |
77 </table> |
|
78 |
82 <h3>Static Methods</h3> |
79 <h3>Static Methods</h3> |
83 |
80 <table> |
84 <table> |
81 <tr><td>None</td></tr> |
85 <tr><td>None</td></tr> |
82 </table> |
86 </table> |
83 |
87 |
84 |
88 <a NAME="LexerHTML.__init__" ID="LexerHTML.__init__"></a> |
85 <a NAME="LexerHTML.__init__" ID="LexerHTML.__init__"></a> |
89 <h4>LexerHTML (Constructor)</h4> |
86 <h4>LexerHTML (Constructor)</h4> |
90 <b>LexerHTML</b>(<i>parent=None</i>) |
87 <b>LexerHTML</b>(<i>parent=None</i>) |
91 |
|
92 <p> |
88 <p> |
93 Constructor |
89 Constructor |
94 </p> |
90 </p> |
|
91 |
95 <dl> |
92 <dl> |
96 |
93 |
97 <dt><i>parent</i> (QWidget)</dt> |
94 <dt><i>parent</i> (QWidget)</dt> |
98 <dd> |
95 <dd> |
99 parent widget of this lexer |
96 parent widget of this lexer |
100 </dd> |
97 </dd> |
101 </dl> |
98 </dl> |
102 <a NAME="LexerHTML.defaultKeywords" ID="LexerHTML.defaultKeywords"></a> |
99 <a NAME="LexerHTML.defaultKeywords" ID="LexerHTML.defaultKeywords"></a> |
103 <h4>LexerHTML.defaultKeywords</h4> |
100 <h4>LexerHTML.defaultKeywords</h4> |
104 <b>defaultKeywords</b>(<i>kwSet</i>) |
101 <b>defaultKeywords</b>(<i>kwSet</i>) |
105 |
|
106 <p> |
102 <p> |
107 Public method to get the default keywords. |
103 Public method to get the default keywords. |
108 </p> |
104 </p> |
|
105 |
109 <dl> |
106 <dl> |
110 |
107 |
111 <dt><i>kwSet</i> (int)</dt> |
108 <dt><i>kwSet</i> (int)</dt> |
112 <dd> |
109 <dd> |
113 number of the keyword set |
110 number of the keyword set |
126 </dd> |
123 </dd> |
127 </dl> |
124 </dl> |
128 <a NAME="LexerHTML.initProperties" ID="LexerHTML.initProperties"></a> |
125 <a NAME="LexerHTML.initProperties" ID="LexerHTML.initProperties"></a> |
129 <h4>LexerHTML.initProperties</h4> |
126 <h4>LexerHTML.initProperties</h4> |
130 <b>initProperties</b>(<i></i>) |
127 <b>initProperties</b>(<i></i>) |
131 |
|
132 <p> |
128 <p> |
133 Public slot to initialize the properties. |
129 Public slot to initialize the properties. |
134 </p> |
130 </p> |
|
131 |
135 <a NAME="LexerHTML.isCommentStyle" ID="LexerHTML.isCommentStyle"></a> |
132 <a NAME="LexerHTML.isCommentStyle" ID="LexerHTML.isCommentStyle"></a> |
136 <h4>LexerHTML.isCommentStyle</h4> |
133 <h4>LexerHTML.isCommentStyle</h4> |
137 <b>isCommentStyle</b>(<i>style</i>) |
134 <b>isCommentStyle</b>(<i>style</i>) |
138 |
|
139 <p> |
135 <p> |
140 Public method to check, if a style is a comment style. |
136 Public method to check, if a style is a comment style. |
141 </p> |
137 </p> |
|
138 |
142 <dl> |
139 <dl> |
143 |
140 |
144 <dt><i>style</i> (int)</dt> |
141 <dt><i>style</i> (int)</dt> |
145 <dd> |
142 <dd> |
146 style to check |
143 style to check |
159 </dd> |
156 </dd> |
160 </dl> |
157 </dl> |
161 <a NAME="LexerHTML.isStringStyle" ID="LexerHTML.isStringStyle"></a> |
158 <a NAME="LexerHTML.isStringStyle" ID="LexerHTML.isStringStyle"></a> |
162 <h4>LexerHTML.isStringStyle</h4> |
159 <h4>LexerHTML.isStringStyle</h4> |
163 <b>isStringStyle</b>(<i>style</i>) |
160 <b>isStringStyle</b>(<i>style</i>) |
164 |
|
165 <p> |
161 <p> |
166 Public method to check, if a style is a string style. |
162 Public method to check, if a style is a string style. |
167 </p> |
163 </p> |
|
164 |
168 <dl> |
165 <dl> |
169 |
166 |
170 <dt><i>style</i> (int)</dt> |
167 <dt><i>style</i> (int)</dt> |
171 <dd> |
168 <dd> |
172 style to check |
169 style to check |
188 <hr /> |
185 <hr /> |
189 <hr /> |
186 <hr /> |
190 <a NAME="createLexer" ID="createLexer"></a> |
187 <a NAME="createLexer" ID="createLexer"></a> |
191 <h2>createLexer</h2> |
188 <h2>createLexer</h2> |
192 <b>createLexer</b>(<i>variant="", parent=None</i>) |
189 <b>createLexer</b>(<i>variant="", parent=None</i>) |
193 |
|
194 <p> |
190 <p> |
195 Function to instantiate a lexer object. |
191 Function to instantiate a lexer object. |
196 </p> |
192 </p> |
|
193 |
197 <dl> |
194 <dl> |
198 |
195 |
199 <dt><i>variant</i> (str)</dt> |
196 <dt><i>variant</i> (str)</dt> |
200 <dd> |
197 <dd> |
201 name of the language variant |
198 name of the language variant |