mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 23:23:06 +11:00
Re-added pygments.
This commit is contained in:
parent
da46efd27a
commit
04e1b17b58
1 changed files with 0 additions and 3 deletions
|
@ -37,8 +37,6 @@ class NakedHtmlFormatter(HtmlFormatter):
|
|||
yield i, t
|
||||
|
||||
def pygmentize(code_string, lexer_name=LEXER_DEFAULT):
|
||||
return escape(code_string)
|
||||
"""
|
||||
try:
|
||||
lexer = get_lexer_by_name(lexer_name)
|
||||
except ValueError:
|
||||
|
@ -50,7 +48,6 @@ def pygmentize(code_string, lexer_name=LEXER_DEFAULT):
|
|||
except TypeError:
|
||||
logger.warning('Could not highlight code with lexer "%s"' % lexer_name)
|
||||
return escape(code_string)
|
||||
"""
|
||||
|
||||
def guess_code_lexer(code_string, default_lexer='unknown'):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue