From 547be1b03ed9fd18a0d9ecd18755b07ca968c1b7 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 9 Jun 2017 09:14:00 +0200 Subject: [PATCH] reverted markdown pygment style to default --- libriis/classes/highlighter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libriis/classes/highlighter.py b/libriis/classes/highlighter.py index 6bd713a..1ac5874 100644 --- a/libriis/classes/highlighter.py +++ b/libriis/classes/highlighter.py @@ -82,15 +82,15 @@ class Highlighter(QSyntaxHighlighter): def __init__(self, parent, mode): QSyntaxHighlighter.__init__(self, parent) - # styles = list(get_all_styles()) - # print(styles) + styles = list(get_all_styles()) + print(styles) # Keep the formatter and lexer, initializing them # may be costly. if not mode == "md": self.formatter=QFormatter(linenos=True, style="monokai") else: - self.formatter=QFormatter(linenos=False, style="github") + self.formatter=QFormatter(linenos=False, style="default") self.lexer=get_lexer_by_name(mode)