Bar*_*kay 1 syntax-highlighting visual-studio-code pug
为什么我的Jade语法突出显示在VS Code中看起来很糟糕? (例如,当我之前添加行时,评论元,总是最后一条评论)
我弄乱了语法还是只是VS Code的错?
这不是第一次,它开始真的让我恼火,但我宁愿解决它,因为我真的很喜欢VS Code
这是我的代码:
doctype html
html
head
title= title
meta(name='viewport', content='width=device-width, initial- scale=1')
// - meta(name='viewport', content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no')
// - Files that need to be included at top
include ./partials/_include_at_top.jade
block extra-styles
body
include ./partials/_main-nav.jade
.page
block content
// - Files that need to be included at bottom
include ./partials/_include_at_bottom.jade
由于VS Code中语言语法的这个问题,语法突出显示很糟糕.
include,block等不被高亮显示是由于您使用的旧的"黑暗(Visual Studio中)"的主题.我们建议您通过执行以下操作更改为"Dark + theme":
theme您似乎也想要使用不渲染注释HTML功能,这是通过使用//-而不是// -.
| 归档时间: |
|
| 查看次数: |
2157 次 |
| 最近记录: |