Skip to content
Browse files

fixing syntax highlighting for non-HTML examples

  • Loading branch information...
1 parent c183cdd commit 94069805a884c23cae965b0c6bc2be349c5f8dea @anutron committed Jun 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 frontend_dev/views.py
View
2 frontend_dev/views.py
@@ -173,7 +173,7 @@ def view_source(request):
def format_code(extension, code_str):
"""Fix indent and highlight code"""
try:
- lexer = get_lexer_by_name('html', tabsize=2)
+ lexer = get_lexer_by_name(extension, tabsize=2)
return highlight(code_str, lexer, HtmlFormatter())
except KeyError:
LOG.warn('Cannot find lexer for extension %s' % (extension,))

0 comments on commit 9406980

Please sign in to comment.
Something went wrong with that request. Please try again.