diff --git a/zim/gui/pageview.py b/zim/gui/pageview.py index c16cdd87e..129d3a8e5 100644 --- a/zim/gui/pageview.py +++ b/zim/gui/pageview.py @@ -555,8 +555,8 @@ class TextBuffer(Gtk.TextBuffer): 'strong': {'weight': Pango.Weight.BOLD}, 'mark': {'background': 'yellow'}, 'strike': {'strikethrough': True, 'foreground': 'grey'}, - 'code': {'family': 'monospace'}, - 'pre': {'family': 'monospace', 'wrap-mode': Gtk.WrapMode.NONE}, + 'code': {'family': 'monospace', 'background': '#f3f3f3'}, + 'pre': {'family': 'monospace', 'paragraph-background': '#f3f3f3'}, 'sub': {'rise': -3500, 'scale': 0.7}, 'sup': {'rise': 7500, 'scale': 0.7}, 'link': {'foreground': 'blue'},