Textadept support for MoonScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lexers
themes
README.md
init.lua
screenshot.png

README.md

MoonScript Textadept support

This package comes with both a theme and a syntax lexer.

screenshot

Install

To install, copy lexers/moonscript.lua to a lexers directory in your local textadept directory (usually .textadept).

To install the theme copy themes/moon.lua to a themes directory in your local textadept directory.

Update your init.lua:

-- enable the lexer
local file_types = require "textadept.file_types"
file_types.extensions.moon = "moonscript"

-- enable the theme, with a custom font (optional)
ui.set_theme(CURSES and "term" or "moon", {
	font = "Source Code Pro",
	fontsize = 14,
})