Open common python template files as HTML
authorJulien Enselme <jenselme@netbeans.org>
Sat, 27 Jun 2015 22:51:19 +0200
changeset 182884c56ed1c8dac
parent 18287 e6da6973208f
child 18289 d47e1632f5b8
Open common python template files as HTML

Support jinja2, mako and chameleon files
python.editor/src/org/netbeans/modules/python/editor/PythonResolver.xml
     1.1 --- a/python.editor/src/org/netbeans/modules/python/editor/PythonResolver.xml	Fri Jul 17 07:47:00 2015 +0200
     1.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/PythonResolver.xml	Sat Jun 27 22:51:19 2015 +0200
     1.3 @@ -24,4 +24,13 @@
     1.4          <ext name="egg"/>
     1.5          <resolver mime="application/x-python-egg"/>
     1.6      </file>
     1.7 +    
     1.8 +    <!-- These files are common extensions of templating language used by python
     1.9 +         web framework. We currently only open these files as HTML -->
    1.10 +    <file>
    1.11 +        <ext name="jinja2" />
    1.12 +        <ext name="mako" />
    1.13 +        <ext name="pt" /> <!-- Chameleon -->
    1.14 +        <resolver mime="text/html" />
    1.15 +    </file>
    1.16  </MIME-resolver>