Module _m

A table of loaded modules. [Dummy file]

Usage

Modules utilize the Lua 5.1 package model.

There are two kinds of modules: generic and language-specific. Both are just
single directories full of Lua scripts and maybe additional files. Each
module has an init.lua script that loads all of the functionality provided by
the module.

Generic modules are loaded on startup (/init.lua) and available all the time.

Language-specific modules are loaded when a file with a specific extension is
opened or saved and available to that kind of file only. Adding or modifying
a language is done in /core/ext/mime_types.lua. Add your language and its
associated lexer to the languages table, the language's file extension and
associated language to the extensions table, and optionally shebang words
with their associated language to the shebangs table.
Each module contains the init.lua script, and typically a commands.lua and
snippets.lua script. Sometimes .api files can be used by a module. To do so,
set an 'api' variable to textadept.io.read_api_file(path, word_chars)'s
return value. It will be used for displaying calltips and autocomplete lists
by default.
To create a new module template, run the /modules/new script with the first
argument being the module's name, and the second being the language's name
(escaped characters must be used appropriately). The commands.lua script
provides useful functions and key-commands for the module; the snippets.lua
script provides snippets.
Alternatively you can use the 'modules' Project Manager browser to create and
manage modules.

When assigning key commands to module functions, do not forget to do so AFTER
the function has been defined. Typically key commands are placed at the end
of files, like commands.lua in language-specific modules.

Functions

no_functions () This module contains no functions.


Functions

no_functions ()
This module contains no functions.

Valid XHTML 1.0!