aboutsummaryrefslogtreecommitdiff
path: root/doc/mkdocs/lua_highlight.patch
blob: 034a63a331d2a141f06464b689f28e8a1f636c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@@ -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