mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-29 08:53:24 +00:00
Updated Ansikit (markdown)
parent
6364ebd74f
commit
dd4494ad14
@ -6,11 +6,11 @@ local ansikit = require 'ansikit'
|
|||||||
```
|
```
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
### AnsiKit.text(string)
|
### AnsiKit.format(string)
|
||||||
|
|
||||||
Formats `string`, replacing `{keys}` with appropriate color codes.
|
Formats `string`, replacing `{keys}` with appropriate color codes.
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
```lua
|
```lua
|
||||||
print(ansikit.text "{blue}blue text hello {green}im green{reset}")
|
print(ansikit.format '{blue}blue text hello {green}im green{reset}')
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user