Minetest/doc/mkdocs/lua_highlight.patch

20 lines
939 B
Diff
Raw Normal View History

@@ -77,7 +77,7 @@
css_class="codehilite", lang=None, style='default',
noclasses=False, tab_length=4, hl_lines=None, use_pygments=True):
self.src = src
- self.lang = lang
+ self.lang = "lua"
self.linenums = linenums
self.guess_lang = guess_lang
self.css_class = css_class
2019-05-21 10:37:10 -07:00
@@ -119,7 +119,8 @@
cssclass=self.css_class,
style=self.style,
noclasses=self.noclasses,
- hl_lines=self.hl_lines)
+ hl_lines=self.hl_lines,
+ wrapcode=True)
return highlight(self.src, lexer, formatter)
else:
# just escape and build markup usable by JS highlighting libs