mirror of
https://github.com/kikito/cron.lua.git
synced 2024-12-19 18:34:20 +00:00
Add syntax highlighting to readme
This commit is contained in:
parent
170f7d9463
commit
547e34514a
@ -31,6 +31,7 @@ Changes the internal timer manually to `running`, or to 0 if nothing is specifie
|
||||
Examples
|
||||
========
|
||||
|
||||
```lua
|
||||
local cron = require 'cron'
|
||||
|
||||
local function printMessage()
|
||||
@ -57,6 +58,7 @@ Examples
|
||||
c3:update(5) -- nothing (total time: 5)
|
||||
c3:update(4) -- nothing (total time: 9)
|
||||
c3:update(12) -- prints 'Hello' twice (total time is now 21)
|
||||
```
|
||||
|
||||
Gotchas / Warnings
|
||||
==================
|
||||
@ -72,7 +74,9 @@ Just copy the cron.lua file somewhere in your projects (maybe inside a /lib/ fol
|
||||
|
||||
Remember to store the value returned by require somewhere! (I suggest a local variable named `cron`)
|
||||
|
||||
```lua
|
||||
local cron = require 'cron'
|
||||
```
|
||||
|
||||
Also, make sure to read the license file; the text of that license file must appear somewhere in your projects' files.
|
||||
|
||||
@ -81,7 +85,9 @@ Specs
|
||||
|
||||
This project uses [busted](https://olivinelabs.com/busted) for its specs. If you want to run the specs, you will have to install it first. Then run:
|
||||
|
||||
```bash
|
||||
cd path/where/the/spec/folder/is
|
||||
busted
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user