Skip to content

Commit befd38c

Browse files
committed
Update README.md
1 parent eb4a01e commit befd38c

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

README.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
#Notepad++ Twig Highlighter 2.1
1+
Notepad++ Twig Highlighter 2.1
2+
==============================
23

34
Simple [Twig](http://twig.sensiolabs.org/) syntax highlighter for Notepad++ with UDL 2.1
45

5-
##Installation
6-
1. Start notepad++.
7-
2. Go to 'View' > 'User-Defined Dialog...'.
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 ... at the bottom, above 'User-Defined'
11-
6. Complain about stuff that doesn't work.
6+
##Installation##
127

13-
##History
14-
1.0 - Final version.<br/>
15-
0.2 - First worked version.<br/>
16-
0.1 (may, 19) - Initial fork.
8+
1. Start notepad++.
9+
2. Go to `Languages` > `Define own Language...` (first after the divider).
10+
3. Click `Import` and select the `Twig.xml` file.
11+
4. Restart Notepad++
12+
5. Twig is now available in the user-defined section in the `Languages` menu.
13+
6. Feel free to point out problems.
1714

18-
##Licence
19-
This project is under GPL V3: http://www.gnu.org/licenses/gpl.html
15+
##Screenshot##
2016

21-
##Credits
22-
[Banane9](https://github.com/Banane9/notepadplusplus-twig) - original project<br/>
23-
[cjmaxik](http://cjmaxik.ru) - update to UDL 2.1
17+
![Screenshot of the highlighting my Notepad++ Twig highlighter does.](http://i.imgur.com/pesGg8O.png)
18+
19+
##Licence##
20+
21+
[GPL V2](https://github.com/Banane9/notepadplusplus-twig/blob/master/LICENSE.md)

TwigHighlightingTests.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
{# Comment
1414
Multiline #}
1515

16+
{{ "I like %S and %s."|format(foo, "bar") }}
17+
1618
{% autoescape true %}
1719
{{ var }}
1820
{{ var|raw }} {# var won't be escaped #}
@@ -22,6 +24,7 @@ Multiline #}
2224
{{ include('page.html', sandboxed = true) }}
2325

2426
{{ "foo #{1 + 2.2} baz" }}
27+
{{ 'foo #{1 + 2.2} baz' }} {# string interpolation isn't supported for single quoted (by twig) #}
2528

2629
{{ foo ? 'yes' : 'no' }}
2730

0 commit comments

Comments
 (0)