-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9f96b19
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<NotepadPlus> | ||
<!-- Created by Farrin A. Reid , see https://github.com/blakmatrix/CoffeeScript_notepad_UDL for latest version--> | ||
<UserLang name="CoffeeScript" ext="coffee coco CAKEFILE"> | ||
<Settings> | ||
<Global caseIgnored="no" escapeChar="\" /> | ||
<TreatAsSymbol comment="no" commentLine="no" /> | ||
<Prefix words1="no" words2="no" words3="no" words4="no" /> | ||
</Settings> | ||
<KeywordLists> | ||
<Keywords name="Delimiters">"'0"'0}</Keywords> | ||
<Keywords name="Folder+">{</Keywords> | ||
<Keywords name="Folder-">}</Keywords> | ||
<Keywords name="Operators">- ! ( ) * , . / : ? @ [ ] { } + < = ></Keywords> | ||
<Keywords name="Comment">1### 2### 0#</Keywords> | ||
<Keywords name="Words1">class extends new instanceof do return break continue throw for while until loop if else unless switch when then and or in of by is isnt not typeof delete where super try catch finally constructor</Keywords> | ||
<Keywords name="Words2">false true yes no on off undefined null NaN Infinity</Keywords> | ||
<Keywords name="Words3">-> Object Number Boolean Array String RegExp Function Date Math eval setInterval clearInterval setTimeout clearTimeout isFinite isNaN parseFloat parseInt escape unescape console encodeURI encodeURIComponent decodeURI decodeURIComponent window document navigator location history screen alert prompt process GLOBAL require exports</Keywords> | ||
<Keywords name="Words4">#{ case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf</Keywords> | ||
</KeywordLists> | ||
<Styles> | ||
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" /> | ||
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" /> | ||
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" /> | ||
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="KEYWORD2" styleID="6" fgColor="408080" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="KEYWORD3" styleID="7" fgColor="800080" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="KEYWORD4" styleID="8" fgColor="FF0000" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="COMMENT" styleID="1" fgColor="008000" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" /> | ||
<WordsStyle name="NUMBER" styleID="4" fgColor="848400" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" /> | ||
<WordsStyle name="OPERATOR" styleID="10" fgColor="FF8040" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="DELIMINER1" styleID="14" fgColor="A31515" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="DELIMINER2" styleID="15" fgColor="9D0000" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" /> | ||
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" /> | ||
<WordsStyle name="REGEX" styleID="52" fgColor="8000FF" bgColor="F2F4FF" fontName="" fontStyle="0" fontSize="" /> | ||
</Styles> | ||
</UserLang> | ||
</NotepadPlus> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# CoffeeScript syntax highlighting for Notepad++ | ||
*** | ||
|
||
It's not perfect by any means, but I believe its the best one can get leveraging Notepad++'s user-defined language. | ||
|
||
|
||
![An example Screenshot](/example_screenshot.png) | ||
|
||
|
||
## Deployment | ||
|
||
|
||
1. If you don't have an userDefineLang.xml file already, you can drop this file among your other configuration file, in the Notepad++ Install Folder. It should be named userDefineLang.xml. | ||
2. Otherwise, open both the existing and new file. | ||
- Select all of the new file, copy, and paste at the end of the current file. | ||
- This should have created a spurious </Notepad_Plus><Notepad_plus> pair in the middle, each tag on a line by itself. Remove these two consecutive lines. | ||
- Close Notepad++. | ||
|
||
|
||
Your Languages menu should show the newly added language at the bottom, next time you launch Notepad++. | ||
|
||
|
||
*** | ||
### Contact | ||
Contact me at blakmatrix@gmail.com for any questions or tips! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.