515 """ |
515 """ |
516 Private slot to export the styles of all lexers. |
516 Private slot to export the styles of all lexers. |
517 """ |
517 """ |
518 self.__exportStyles(list(self.lexers.values())) |
518 self.__exportStyles(list(self.lexers.values())) |
519 |
519 |
|
520 # TODO: do the JSON styles |
520 def __exportStyles(self, lexers): |
521 def __exportStyles(self, lexers): |
521 """ |
522 """ |
522 Private method to export the styles of the given lexers. |
523 Private method to export the styles of the given lexers. |
523 |
524 |
524 @param lexers list of lexer objects for which to export the styles |
525 @param lexers list of lexer objects for which to export the styles |
556 """<p>The highlighting styles could not be exported""" |
557 """<p>The highlighting styles could not be exported""" |
557 """ to file <b>{0}</b>.</p><p>Reason: {1}</p>""") |
558 """ to file <b>{0}</b>.</p><p>Reason: {1}</p>""") |
558 .format(fn, f.errorString()) |
559 .format(fn, f.errorString()) |
559 ) |
560 ) |
560 |
561 |
|
562 # TODO: do the JSON styles |
561 def __importStyles(self, lexers): |
563 def __importStyles(self, lexers): |
562 """ |
564 """ |
563 Private method to import the styles of the given lexers. |
565 Private method to import the styles of the given lexers. |
564 |
566 |
565 @param lexers dictionary of lexer objects for which to import the |
567 @param lexers dictionary of lexer objects for which to import the |