Plugin API
LuaFAR for Editor
Plugin API
- There is an important thing to know when writing scripts for
LuaFAR for Editor: indexing string variables accesses functions
in
unicode.utf8 rather than in string namespace.
- For example,
s:sub(1,2) means unicode.utf8.sub(s,1,2).
- To use
string library, specify that explicitly,
e.g., string.sub(s,1,2).
#s refers to string.len(s). Use s:len()
to obtain number of characters.
- The plugin has a few functions that are available to user scripts.
They are placed under lf4ed namespace.