aboutsummaryrefslogtreecommitdiff
path: root/docs/api/encoding.lua
AgeCommit message (Collapse)Author
2025-06-26Lua doc comment improvements for better API reference generation (#185)Jefferson González
Improvements to the Lua doc comments that allows improved generation of the Lua API reference using the gendocs plugin.
2025-02-17Fix handling of documents Bytes Order Mark (BOM) (#218)Jefferson González
Main feature of these changes is that now we properly save the BOM if the loaded document originally contained one. Other changes include: * Updated encoding API functions to also return the BOM: - encoding.detect - encoding.detect_string - encoding.strip_bom * Return nil on `encoding.get_charset_bom()` if no applicable BOM. * Updated encoding API Lua docs. * Introduced `Doc:needs_encoding_conversion()` to simplify conversion logic. * Introduced three new document bom handling commands: - doc:disable-bom - doc:enable-bom - doc:toggle-bom * Show BOM if active on status bar. These changes should fix #214
2023-05-20Merged encoding support from lite-xl/lite-xl#1161jgmdev