mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Python as default lexer
This commit is contained in:
parent
4992571444
commit
2734acb627
1 changed files with 2 additions and 2 deletions
|
@ -38,10 +38,10 @@ class NakedHtmlFormatter(HtmlFormatter):
|
|||
for i, t in source:
|
||||
yield i, t
|
||||
|
||||
def pygmentize(code_string, lexer_name='text'):
|
||||
def pygmentize(code_string, lexer_name=LEXER_DEFAULT):
|
||||
try:
|
||||
lexer = get_lexer_by_name(lexer_name)
|
||||
except (TypeError, ClassNotFound):
|
||||
except ClassNotFound:
|
||||
logger.warning('Could not find lexer for name "%s"' % lexer_name)
|
||||
lexer = PythonLexer()
|
||||
|
||||
|
|
Loading…
Reference in a new issue