summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-18 22:02:06 +0200
committermadmaxoft <github@xoft.cz>2013-10-18 22:02:06 +0200
commit1b7a84d494a5d9025ef72e6d985a194202fb38f8 (patch)
treeb29e47845c007504c67563ef2eb8310d0961e2bf /MCServer/Plugins/APIDump
parentAPIDump: Added example code to cItem. (diff)
downloadcuberite-1b7a84d494a5d9025ef72e6d985a194202fb38f8.tar
cuberite-1b7a84d494a5d9025ef72e6d985a194202fb38f8.tar.gz
cuberite-1b7a84d494a5d9025ef72e6d985a194202fb38f8.tar.bz2
cuberite-1b7a84d494a5d9025ef72e6d985a194202fb38f8.tar.lz
cuberite-1b7a84d494a5d9025ef72e6d985a194202fb38f8.tar.xz
cuberite-1b7a84d494a5d9025ef72e6d985a194202fb38f8.tar.zst
cuberite-1b7a84d494a5d9025ef72e6d985a194202fb38f8.zip
Diffstat (limited to 'MCServer/Plugins/APIDump')
-rw-r--r--MCServer/Plugins/APIDump/main.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 93f3e7258..fe4df751b 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -813,7 +813,14 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
end
end
- cf:write(" </div>\n </body>\n</html>");
+ cf:write([[
+ </div>
+ <script>
+ prettyPrint();
+ </script>
+ </body>
+</html>
+ ]]);
cf:close();
end
@@ -879,6 +886,9 @@ function WriteHtmlHook(a_Hook)
f:write(" <pre class=\"prettyprint lang-lua\">" .. (example.Code or "<i>missing Code</i>") .. "\n </pre>\n\n");
end
f:write([[ </div>
+ <script>
+ prettyPrint();
+ </script>
</body>
</html>]]);
f:close();