如何在Sublime Text中格式化Django模板 [英] How to format django template in Sublime Text
本文介绍了如何在Sublime Text中格式化Django模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Sublime Text中格式化Django模板。
我的模板包括:
How can one format django template in Sublime Text. My template consists of:
- HTML (带有
的django模板语言{{变量}}
和{%东西%}
) - javascript
- HTML (django template language with
{{ variable }}
and{% stuff %}
) - javascript
有没有办法获得PyCharm提供的相同格式?
Is there a way to get same kind of formatting PyCharm provides?
推荐答案
此程序包应有所帮助:
https:// github .com / squ1b3r / Djaneiro
This package should help: https://github.com/squ1b3r/Djaneiro
以下是一些安装提示:
如何将插件安装到Sublime Text 2编辑器?
Here are some tips on install: How to install plugins to Sublime Text 2 editor?
这篇关于如何在Sublime Text中格式化Django模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文