mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
scintillua directions
This commit is contained in:
parent
53f587021d
commit
d50ff29396
37
extra/scintillua/README.md
Normal file
37
extra/scintillua/README.md
Normal file
@ -0,0 +1,37 @@
|
||||
|
||||
# MoonScript for [scintillua][1]
|
||||
|
||||
MoonScript syntax file for [SciTE][2] written in Lua for [scintillua][1].
|
||||
|
||||
## Windows Binary
|
||||
|
||||
Windows users can get a all-included package ready for MoonScript Development:
|
||||
|
||||
<http://moonscript.org/scite/>
|
||||
|
||||
If you already have a ScITE installation, or are on another platform, follow
|
||||
the directions below.
|
||||
|
||||
## Installation
|
||||
|
||||
Install SciTE, then [install scintillua][3].
|
||||
|
||||
Put `moonscript.properties` in in your ScITE installation folder or user
|
||||
properties folder.
|
||||
|
||||
Copy the entire contents of the `lexers` folder in this repository into your
|
||||
scintillua `lexers` folder.
|
||||
|
||||
In your `lexers` folder edit `lpeg.properties`, add to the end:
|
||||
|
||||
file.patterns.moonscript=*.moon
|
||||
lexer.$(file.patterns.moonscript)=lpeg_moonscript
|
||||
|
||||
Optionally, enable the Moon theme, find `lexer.peg.color.theme` in the same
|
||||
file and change it to:
|
||||
|
||||
lexer.lpeg.color.theme=moon
|
||||
|
||||
[1]: http://code.google.com/p/scintillua/ "scintillua"
|
||||
[2]: http://www.scintilla.org/SciTE.html "SciTE"
|
||||
[3]: http://code.google.com/p/scintillua/#Using_with_SciTE
|
11
extra/scintillua/moonscript.properties
Normal file
11
extra/scintillua/moonscript.properties
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
file.patterns.moon=*.moon
|
||||
shbang.moon=moon
|
||||
filter.moon=MoonScript (moon)|$(file.patterns.moon)|
|
||||
|
||||
command.compile.*.moon=moonc "$(FileNameExt)"
|
||||
command.go.*.moon=moon "$(FileNameExt)"
|
||||
|
||||
tabsize=2
|
||||
indent.size=2
|
||||
use.tabs=0
|
Loading…
Reference in New Issue
Block a user