4
4
Licensed under the terms of the MIT License
5
5
6
6
Re-written for Snippet Editor by Jordan Wiens (https://github.com/psifertex/)
7
- With some original components (line numbers) based on:
7
+ With some original components (line numbers) based on:
8
8
9
9
https://github.com/luchko/QCodeEditor
10
10
@author: Ivan Luchko ([email protected] )
@@ -57,7 +57,7 @@ def highlightBlock(self, text):
57
57
p = cb .position ()
58
58
text = self .document ().toPlainText ()+ ' \n '
59
59
highlight (text ,self .lexer ,self .formatter )
60
-
60
+
61
61
#dirty, dirty hack
62
62
for i in range (len (text )):
63
63
try :
@@ -83,7 +83,7 @@ def bnformat(color, style=''):
83
83
84
84
return format
85
85
86
- # Most of these aren't needed but after fighting pygments for so long I figure they can't hurt.
86
+ # Most of these aren't needed but after fighting pygments for so long I figure they can't hurt.
87
87
bnstyles = {
88
88
'Token.Literal.Number' : bnformat ('NumberColor' ),
89
89
'Token.Literal.Number.Bin' : bnformat ('NumberColor' ),
@@ -116,7 +116,7 @@ def bnformat(color, style=''):
116
116
'Token.Punctuation' : bnformat ('UncertainColor' ),
117
117
118
118
#This is the most important and hardest to get right. No way to get theme palettes!
119
- 'Token.Name' : bnformat ('OutlineColor' ),
119
+ 'Token.Name' : bnformat ('OutlineColor' ),
120
120
121
121
'Token.Name.Namespace' : bnformat ('OutlineColor' ),
122
122
0 commit comments