From a40d29a514640cebea567517ac5a17befd451738 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Thu, 9 Feb 2023 00:32:32 +0100 Subject: [PATCH] docs: make sure all code blocks have an appropriate language [no ci] --- docs/wip-plugins.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/wip-plugins.md b/docs/wip-plugins.md index e6d00ebcf..a2d1b5b4a 100644 --- a/docs/wip-plugins.md +++ b/docs/wip-plugins.md @@ -65,7 +65,7 @@ Writes a message to the Chatterino log. The `level` argument should be a Example: -``` +```lua c2.log(c2.LogLevel.Warning, "Hello, this should show up in the Chatterino log by default") c2.log(c2.LogLevel.Debug, "Hello world") @@ -112,7 +112,7 @@ Sends a message to `channel` with the specified text. Also executes commands. Example: -``` +```lua function cmdShout(ctx) table.remove(ctx.words, 1) local output = table.concat(ctx.words, " ") @@ -157,7 +157,7 @@ You are restricted to loading files in your plugin's directory. You cannot load Example: -``` +```lua execfile("stuff.lua") -- executes Plugins/name/stuff.lua execfile("./stuff.lua") -- executes Plugins/name/stuff.lua execfile("../stuff.lua") -- tries to load Plugins/stuff.lua and errors