reverted markdown pygment style to default
This commit is contained in:
@@ -82,15 +82,15 @@ class Highlighter(QSyntaxHighlighter):
|
|||||||
def __init__(self, parent, mode):
|
def __init__(self, parent, mode):
|
||||||
QSyntaxHighlighter.__init__(self, parent)
|
QSyntaxHighlighter.__init__(self, parent)
|
||||||
|
|
||||||
# styles = list(get_all_styles())
|
styles = list(get_all_styles())
|
||||||
# print(styles)
|
print(styles)
|
||||||
|
|
||||||
# Keep the formatter and lexer, initializing them
|
# Keep the formatter and lexer, initializing them
|
||||||
# may be costly.
|
# may be costly.
|
||||||
if not mode == "md":
|
if not mode == "md":
|
||||||
self.formatter=QFormatter(linenos=True, style="monokai")
|
self.formatter=QFormatter(linenos=True, style="monokai")
|
||||||
else:
|
else:
|
||||||
self.formatter=QFormatter(linenos=False, style="github")
|
self.formatter=QFormatter(linenos=False, style="default")
|
||||||
|
|
||||||
self.lexer=get_lexer_by_name(mode)
|
self.lexer=get_lexer_by_name(mode)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user