diff --git a/File Formats/Code/Lua.md b/File Formats/Code/Lua.md deleted file mode 100644 index cda37e6..0000000 --- a/File Formats/Code/Lua.md +++ /dev/null @@ -1,15 +0,0 @@ -# *COS 2:* Lua - -## Quick information - -| Information | | -| ----------- | ------------------------- | -| Type | Plain text file format | -| MIME | `text/lua` | -| Extensions | `.lua` | - -## Technical details - -*This format is based upon [plain text](/File%20Formats/Documents/Plain%20Text.md) and as such technical details that apply to plain text also apply to this format.* - -Lua code files should contain valid, executable Lua code. These can either be self-contained programs, APIs or Lua otherwise loaded by a program. diff --git a/File Formats/Lua/API.md b/File Formats/Lua/API.md new file mode 100644 index 0000000..c752bc4 --- /dev/null +++ b/File Formats/Lua/API.md @@ -0,0 +1,15 @@ +# *COS ?:* Lua API + +## Quick information + +| Information | | +| ----------- | ------------------------- | +| Type | Lua API | +| MIME | `lua/api` | +| Extensions | `.api` | + +## Technical details + +*This format is based upon [plain text](/File%20Formats/Documents/Plain%20Text.md) and as such technical details that apply to plain text also apply to this format.* + +Lua API files must contain valid Lua code which can be loaded by `os.loadAPI` without error. For more information, see the [wiki page](http://www.computercraft.info/wiki/Os.loadAPI) on APIs. \ No newline at end of file