mirror of
https://github.com/minetest/minetest.git
synced 2024-12-15 18:59:21 +01:00
20 lines
939 B
Diff
20 lines
939 B
Diff
@@ -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
|
|
@@ -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
|