Use classic Markdown codeblock style
This commit is contained in:
parent
b49a49e621
commit
ea1ae7c005
@ -93,15 +93,12 @@ Here’s the file structure:
|
|||||||
|
|
||||||
The code of `init.lua`:
|
The code of `init.lua`:
|
||||||
|
|
||||||
```
|
local S = minetest.get_translator("lzr_pack_example")
|
||||||
local S = minetest.get_translator("lzr_pack_example")
|
|
||||||
|
lzr_levels.register_level_pack("example", {
|
||||||
|
title = S("My Example Levels"),
|
||||||
|
description = S("Some example levels to test things."),
|
||||||
|
textdomain_level_names = "lzr_pack_example_level_names",
|
||||||
|
textdomain_npc_texts = "lzr_pack_example_npc_texts",
|
||||||
|
})
|
||||||
|
|
||||||
lzr_levels.register_level_pack("example",
|
|
||||||
{
|
|
||||||
title = S("My Example Levels"),
|
|
||||||
description = S("Some example levels to test things."),
|
|
||||||
textdomain_level_names = "lzr_pack_example_level_names",
|
|
||||||
textdomain_npc_texts = "lzr_pack_example_npc_texts",
|
|
||||||
}
|
|
||||||
)
|
|
||||||
```
|
|
||||||
|
@ -39,16 +39,12 @@ The length of each row *must* be equal.
|
|||||||
|
|
||||||
For example, this table:
|
For example, this table:
|
||||||
|
|
||||||
```
|
{
|
||||||
{
|
{"value1", "value2", "value3"}, -- row 1
|
||||||
{"value1", "value2", "value3"}, -- row 1
|
{"value4", "value5", "value6"}, -- row 2
|
||||||
{"value4", "value5", "value6"}, -- row 2
|
},
|
||||||
},
|
|
||||||
```
|
|
||||||
|
|
||||||
Is equivalent to the following CSV file:
|
Is equivalent to the following CSV file:
|
||||||
|
|
||||||
```
|
value1,value2,value3
|
||||||
value1,value2,value3
|
value4,value5,value6
|
||||||
value4,value5,value6
|
|
||||||
```
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user