Skip to content

Commit f9ca55a

Browse files
committed
Initial Commit. Works fine except for hashes {foo: "bar"}
0 parents  commit f9ca55a

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Notepad++ Twig Highlighter
2+
3+
Simple [Twig](http://twig.sensiolabs.org/) syntax highlighter for Notepad++.
4+
5+
##Installation
6+
1. Start notepad++.
7+
2. Go to 'View' > 'User defined language...'.
8+
3. Click 'Import' and select the 'twig.xml' file.
9+
4. Restart Notepad++
10+
5. Twig is now available in the list of languages.
11+
6. Complain about stuff that doesn't work.
12+
13+
##Licence
14+
This project is under GPL V3: http://www.gnu.org/licenses/gpl.html

Twig.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<NotepadPlus>
2+
<UserLang name="Twig" ext="twig">
3+
<Settings>
4+
<Global caseIgnored="no" />
5+
<TreatAsSymbol comment="no" commentLine="no" />
6+
<Prefix words1="no" words2="no" words3="no" words4="no" />
7+
</Settings>
8+
<KeywordLists>
9+
<Keywords name="Delimiters">&quot;&apos;0&quot;&apos;0</Keywords>
10+
<Keywords name="Folder+">block for if spaceless macro autoescape filter sandbox embed</Keywords>
11+
<Keywords name="Folder-">endblock endfor endif endspaceless endmacro endautoescape endfilter endsandbox endembed</Keywords>
12+
<Keywords name="Operators">- ! ( ) * , . / : ? [ ] | ~ + &lt; = &gt;</Keywords>
13+
<Keywords name="Comment">1{# 2#} 0</Keywords>
14+
<Keywords name="Words1">{{ }} {% %}</Keywords>
15+
<Keywords name="Words2">as do extends flush from import include raw set endset use is not true false and or b-and b-xor b-or % in else</Keywords>
16+
<Keywords name="Words3"></Keywords>
17+
<Keywords name="Words4"></Keywords>
18+
</KeywordLists>
19+
<Styles>
20+
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
21+
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF8400" bgColor="FFFFFF" fontName="" fontStyle="0" />
22+
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF8400" bgColor="FFFFFF" fontName="" fontStyle="0" />
23+
<WordsStyle name="KEYWORD1" styleID="5" fgColor="A0A0A0" bgColor="FFFFFF" fontName="" fontStyle="0" />
24+
<WordsStyle name="KEYWORD2" styleID="6" fgColor="FF8400" bgColor="FFFFFF" fontName="" fontStyle="0" />
25+
<WordsStyle name="KEYWORD3" styleID="7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
26+
<WordsStyle name="KEYWORD4" styleID="8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
27+
<WordsStyle name="COMMENT" styleID="1" fgColor="B729D9" bgColor="FFFFFF" fontName="" fontStyle="0" />
28+
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="B729D9" bgColor="FFFFFF" fontName="" fontStyle="0" />
29+
<WordsStyle name="NUMBER" styleID="4" fgColor="1299DA" bgColor="FFFFFF" fontName="" fontStyle="0" />
30+
<WordsStyle name="OPERATOR" styleID="10" fgColor="E0882F" bgColor="FFFFFF" fontName="" fontStyle="0" />
31+
<WordsStyle name="DELIMINER1" styleID="14" fgColor="56DB3A" bgColor="FFFFFF" fontName="" fontStyle="0" />
32+
<WordsStyle name="DELIMINER2" styleID="15" fgColor="56DB3A" bgColor="FFFFFF" fontName="" fontStyle="0" />
33+
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
34+
</Styles>
35+
</UserLang>
36+
</NotepadPlus>

0 commit comments

Comments
 (0)