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