对 Jade 使用不同的缩进 [英] Using different indentation for Jade

查看:48
本文介绍了对 Jade 使用不同的缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本教程看来,Jade 需要 2 个空格的制表符.我可以在 Jade 中使用另一种制表语法吗?

From this tutorial it seems that Jade requires 2-spaces tabs. Can I use another tabbing syntax with Jade?

推荐答案

没有必要只使用两个空格来制表.

It's not necessary to use only two spaces for tabbing.

您可以使用任意数量的空格(一致)或制表符来缩进.唯一的问题是你不能同时使用空格和制表符,否则编译时会出错.

You can use any number of spaces (consistently) or a tab character to indent. The only quirk is you can't use both spaces and tabs at the same time, or it will give an error while compiling.

查看此链接Jade.

这篇关于对 Jade 使用不同的缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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