def header_callback(lexer, match):
# highlight correct filetype names specially
if match.group(1) in filetypes or match.group(1) == 'DEFAULT':
yield (match.start(), pygments.token.Keyword, match.group(0))
else:
yield (match.start(), pygments.token.Text, match.group(0))
评论列表
文章目录