##// END OF EJS Templates
Add hack to change traceback syntax highlighting (#14138)...
Matthias Bussonnier -
r28369:124de523 merge
parent child Browse files
Show More
@@ -809,6 +809,7 b' class VerboseTB(TBTools):'
809 would appear in the traceback)."""
809 would appear in the traceback)."""
810
810
811 _tb_highlight = "bg:ansiyellow"
811 _tb_highlight = "bg:ansiyellow"
812 _tb_highlight_style = "default"
812
813
813 def __init__(
814 def __init__(
814 self,
815 self,
@@ -1110,7 +1111,7 b' class VerboseTB(TBTools):'
1110 after = context // 2
1111 after = context // 2
1111 before = context - after
1112 before = context - after
1112 if self.has_colors:
1113 if self.has_colors:
1113 style = get_style_by_name("default")
1114 style = get_style_by_name(self._tb_highlight_style)
1114 style = stack_data.style_with_executing_node(style, self._tb_highlight)
1115 style = stack_data.style_with_executing_node(style, self._tb_highlight)
1115 formatter = Terminal256Formatter(style=style)
1116 formatter = Terminal256Formatter(style=style)
1116 else:
1117 else:
General Comments 0
You need to be logged in to leave comments. Login now