diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index a79ae4be5..2874c5623 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -760,7 +760,8 @@ class CommandDispatcher: url = self._tabs.current_url() html = frame.toHtml() lexer = pygments.lexers.HtmlLexer() - formatter = pygments.formatters.HtmlFormatter(full=True) + formatter = pygments.formatters.HtmlFormatter( + full=True, linenos='table') highlighted = pygments.highlight(html, lexer, formatter) tab = self._tabs.tabopen(explicit=True) tab.setHtml(highlighted, url)