This is a set of snippets for Eclipse Zen Coding plugin to use in Django templates. At the moment it includes snippets for all standard Django templates tags.
- Make sure that Eclipse Zen Coding plugin is installed and working.
- Download the zen-django.xml file.
- Open Eclipse preferences and go to Zen Coding → Snippets.
- Click Import... button and select the zen-django.xml.
- That's it, you can use the snippets now.
Abbreviation | Tag |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can use some of these snippets to wrap a text fragment with a tag. To do that select the text and choose Wrap With Abbreviation... from Zen Coding menu. This works for tags which have an ending tag, like {% if %} {% endif %}
.
You can use the Tab key to move the cursor to next logical position. For example use the for
snippet and hit Tab to see how the cursor moves.