|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.E4XML.HighlightingStylesHandler</title> |
|
6 <style> |
|
7 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' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.E4XML.HighlightingStylesHandler</h1> |
|
12 <p> |
|
13 Module implementing the handler class for handling a highlighting styles XML file. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#HighlightingStylesHandler">HighlightingStylesHandler</a></td> |
|
23 <td>Class implementing a sax handler to read a highlighting styles file.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="HighlightingStylesHandler" ID="HighlightingStylesHandler"></a> |
|
32 <h2>HighlightingStylesHandler</h2> |
|
33 <p> |
|
34 Class implementing a sax handler to read a highlighting styles file. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 XMLHandlerBase |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#HighlightingStylesHandler.__init__">HighlightingStylesHandler</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#HighlightingStylesHandler.getVersion">getVersion</a></td> |
|
49 <td>Public method to retrieve the version of the shortcuts.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#HighlightingStylesHandler.startDocumentHighlightingStyles">startDocumentHighlightingStyles</a></td> |
|
52 <td>Handler called, when the document parsing is started.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#HighlightingStylesHandler.startHighlightingStyles">startHighlightingStyles</a></td> |
|
55 <td>Handler method for the "HighlightingStyles" start tag.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#HighlightingStylesHandler.startLexer">startLexer</a></td> |
|
58 <td>Handler method for the "Lexer" start tag.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#HighlightingStylesHandler.startStyle">startStyle</a></td> |
|
61 <td>Handler method for the "Style" start tag.</td> |
|
62 </tr> |
|
63 </table> |
|
64 <a NAME="HighlightingStylesHandler.__init__" ID="HighlightingStylesHandler.__init__"></a> |
|
65 <h4>HighlightingStylesHandler (Constructor)</h4> |
|
66 <b>HighlightingStylesHandler</b>(<i>lexers</i>) |
|
67 <p> |
|
68 Constructor |
|
69 </p><dl> |
|
70 <dt><i>lexers</i></dt> |
|
71 <dd> |
|
72 dictionary of lexer objects for which to import the styles |
|
73 </dd> |
|
74 </dl><a NAME="HighlightingStylesHandler.getVersion" ID="HighlightingStylesHandler.getVersion"></a> |
|
75 <h4>HighlightingStylesHandler.getVersion</h4> |
|
76 <b>getVersion</b>(<i></i>) |
|
77 <p> |
|
78 Public method to retrieve the version of the shortcuts. |
|
79 </p><dl> |
|
80 <dt>Returns:</dt> |
|
81 <dd> |
|
82 String containing the version number. |
|
83 </dd> |
|
84 </dl><a NAME="HighlightingStylesHandler.startDocumentHighlightingStyles" ID="HighlightingStylesHandler.startDocumentHighlightingStyles"></a> |
|
85 <h4>HighlightingStylesHandler.startDocumentHighlightingStyles</h4> |
|
86 <b>startDocumentHighlightingStyles</b>(<i></i>) |
|
87 <p> |
|
88 Handler called, when the document parsing is started. |
|
89 </p><a NAME="HighlightingStylesHandler.startHighlightingStyles" ID="HighlightingStylesHandler.startHighlightingStyles"></a> |
|
90 <h4>HighlightingStylesHandler.startHighlightingStyles</h4> |
|
91 <b>startHighlightingStyles</b>(<i>attrs</i>) |
|
92 <p> |
|
93 Handler method for the "HighlightingStyles" start tag. |
|
94 </p><dl> |
|
95 <dt><i>attrs</i></dt> |
|
96 <dd> |
|
97 list of tag attributes |
|
98 </dd> |
|
99 </dl><a NAME="HighlightingStylesHandler.startLexer" ID="HighlightingStylesHandler.startLexer"></a> |
|
100 <h4>HighlightingStylesHandler.startLexer</h4> |
|
101 <b>startLexer</b>(<i>attrs</i>) |
|
102 <p> |
|
103 Handler method for the "Lexer" start tag. |
|
104 </p><dl> |
|
105 <dt><i>attrs</i></dt> |
|
106 <dd> |
|
107 list of tag attributes |
|
108 </dd> |
|
109 </dl><a NAME="HighlightingStylesHandler.startStyle" ID="HighlightingStylesHandler.startStyle"></a> |
|
110 <h4>HighlightingStylesHandler.startStyle</h4> |
|
111 <b>startStyle</b>(<i>attrs</i>) |
|
112 <p> |
|
113 Handler method for the "Style" start tag. |
|
114 </p><dl> |
|
115 <dt><i>attrs</i></dt> |
|
116 <dd> |
|
117 list of tag attributes |
|
118 </dd> |
|
119 </dl> |
|
120 <div align="right"><a href="#top">Up</a></div> |
|
121 <hr /> |
|
122 </body></html> |