mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
docs: make sure all code blocks have an appropriate language
[no ci]
This commit is contained in:
parent
9ac0844921
commit
a40d29a514
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ Writes a message to the Chatterino log. The `level` argument should be a
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```
|
```lua
|
||||||
c2.log(c2.LogLevel.Warning, "Hello, this should show up in the Chatterino log by default")
|
c2.log(c2.LogLevel.Warning, "Hello, this should show up in the Chatterino log by default")
|
||||||
|
|
||||||
c2.log(c2.LogLevel.Debug, "Hello world")
|
c2.log(c2.LogLevel.Debug, "Hello world")
|
||||||
|
@ -112,7 +112,7 @@ Sends a message to `channel` with the specified text. Also executes commands.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```
|
```lua
|
||||||
function cmdShout(ctx)
|
function cmdShout(ctx)
|
||||||
table.remove(ctx.words, 1)
|
table.remove(ctx.words, 1)
|
||||||
local output = table.concat(ctx.words, " ")
|
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:
|
Example:
|
||||||
|
|
||||||
```
|
```lua
|
||||||
execfile("stuff.lua") -- executes Plugins/name/stuff.lua
|
execfile("stuff.lua") -- executes Plugins/name/stuff.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
|
execfile("../stuff.lua") -- tries to load Plugins/stuff.lua and errors
|
||||||
|
|
Loading…
Reference in a new issue