From 503c7f30274fc4bb8b7719df56750a36c9b81ced Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sun, 8 Mar 2020 22:36:18 -0400 Subject: add lexer info --- syntax-highlighting-server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax-highlighting-server.py b/syntax-highlighting-server.py index 05140a7..89377c1 100755 --- a/syntax-highlighting-server.py +++ b/syntax-highlighting-server.py @@ -69,6 +69,8 @@ class HighlightingHandler(BaseHTTPRequestHandler): lexer = guess_lexer(data) except ClassNotFound: lexer = TextLexer() + self.wfile.write('') self.wfile.write(self.server.style_defs) highlight(data, lexer, self.server.formatter, outfile=self.wfile) -- cgit v1.2.3-70-g09d2