如何在Sublime Text中格式化Django模板 [英] How to format django template in Sublime Text

查看:148
本文介绍了如何在Sublime Text中格式化Django模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Sublime Text中格式化Django模板。
我的模板包括:

How can one format django template in Sublime Text. My template consists of:


  1. HTML (带有的django模板语言{{变量}} {%东西%}

  2. javascript

  1. HTML (django template language with {{ variable }} and {% stuff %})
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆