37 """ |
39 """ |
38 Public method to write the XML to the file. |
40 Public method to write the XML to the file. |
39 """ |
41 """ |
40 XMLStreamWriterBase.writeXML(self) |
42 XMLStreamWriterBase.writeXML(self) |
41 |
43 |
42 self.writeDTD('<!DOCTYPE HighlightingStyles SYSTEM "HighlightingStyles-{0}.dtd">'\ |
44 self.writeDTD( |
43 .format(highlightingStylesFileFormatVersion)) |
45 '<!DOCTYPE HighlightingStyles SYSTEM' |
|
46 ' "HighlightingStyles-{0}.dtd">'.format( |
|
47 highlightingStylesFileFormatVersion)) |
44 |
48 |
45 # add some generation comments |
49 # add some generation comments |
46 self.writeComment(" Eric5 highlighting styles ") |
50 self.writeComment(" Eric5 highlighting styles ") |
47 self.writeComment(" Saved: {0}".format(time.strftime('%Y-%m-%d, %H:%M:%S'))) |
51 self.writeComment( |
|
52 " Saved: {0}".format(time.strftime('%Y-%m-%d, %H:%M:%S'))) |
48 self.writeComment(" Author: {0} ".format(self.email)) |
53 self.writeComment(" Author: {0} ".format(self.email)) |
49 |
54 |
50 # add the main tag |
55 # add the main tag |
51 self.writeStartElement("HighlightingStyles") |
56 self.writeStartElement("HighlightingStyles") |
52 self.writeAttribute("version", highlightingStylesFileFormatVersion) |
57 self.writeAttribute("version", highlightingStylesFileFormatVersion) |