docs: make sure all code blocks have an appropriate language

[no ci]
This commit is contained in:
Mm2PL 2023-02-09 00:32:32 +01:00
parent 9ac0844921
commit a40d29a514
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -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