diff options
-rwxr-xr-x | syntax-highlighting-server.py | 2 |
1 files changed, 2 insertions, 0 deletions
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('<!-- Lexer: ' + lexer.name + + ' (' + lexer.__class__.__name__ + ') -->') self.wfile.write(self.server.style_defs) highlight(data, lexer, self.server.formatter, outfile=self.wfile) |