onecrayon / tea-for-espresso

An Espresso Sugar containing Textmate-style Text Editor Actions
http://onecrayon.com/tea/
58 stars 3 forks source link

TEA 1.2b2 for espresso doesn't work in xml files #87

Closed gvvaughan closed 14 years ago

gvvaughan commented 14 years ago

add a user snippet for

    xml => <?xml version="1.0"?>

At the top of a new file test.html, enter xml then press CTRL-, and everything works At the top of another new file test.xml, do the same thing and instead we get:

    <xml>
            |
    </xml>

I fixed this by adding an 'xml' section to Support/Library/zencoding/zen_settings.py:

    'xml': {
            'extends': 'common',
            'abbreviations': {
                    'xml': '<?xml version="1.0"?>'
            }
    },

After which both the 'xml' abbreviation added, and any other user snippets will now expand properly in an xml file.

onecrayon commented 14 years ago

Fixed zen coding variable error and added xml group to allow common snippets to apply to XML documents

Closed by 84b30f7180957dabf89d8132b564616f991f4e3b