Hello, does anybody have a highlighter ini for Twig?  If not, I would like to
make one, but could use a little guidance.

It is a simple language, but the delimiters are different from what PSPad seems
to know about.  Mainly there are three types of delimiter: {{  {#  {%


{{ foo }}
{# comment #}
{% if foo %}{% endif %}



Twig files can look like this:

<!DOCTYPE html>
<html>
    <head>
        {# This is a comment #}
        {{ category }}
        {% block head %}
            <link rel="stylesheet" href="style.css" />
            <title>{% block title %}{% endblock %} - My Webpage</title>
        {% endblock %}
    </head>
    <body>
        <div id="content">{% block content %}{% endblock %}</div>
        <div id="footer">
            {% block footer %}
                &copy; Copyright 2011 by <a
href="http://domain.invalid/";>you</a>.
            {% endblock %}
        </div>
    </body>
</html>


Thank you for any help!

-- 
<http://forum.pspad.com/read.php?2,65238,65238>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem