lua_highlight.patch 939 B

1234567891011121314151617181920
  1. @@ -77,7 +77,7 @@
  2. css_class="codehilite", lang=None, style='default',
  3. noclasses=False, tab_length=4, hl_lines=None, use_pygments=True):
  4. self.src = src
  5. - self.lang = lang
  6. + self.lang = "lua"
  7. self.linenums = linenums
  8. self.guess_lang = guess_lang
  9. self.css_class = css_class
  10. @@ -119,7 +119,8 @@
  11. cssclass=self.css_class,
  12. style=self.style,
  13. noclasses=self.noclasses,
  14. - hl_lines=self.hl_lines)
  15. + hl_lines=self.hl_lines,
  16. + wrapcode=True)
  17. return highlight(self.src, lexer, formatter)
  18. else:
  19. # just escape and build markup usable by JS highlighting libs