2015-01-21 30 views
-1

下面的html有一个错误,它不会被崇高文本的语法突出显示。Sublime不突出显示html语法错误

<div class="container"> 
    <img class"left" src="/static/img/product.jpg"/> 
    <div class="right"> 
     <h2 class="caps">Product Name</h2> 
    </div> 
</div> 

Screenshot of the code in Sublime

我花了好长时间才发现错误。在像Visual Studio这样的IDE中,编辑会像下面那样突出显示它。

Screenshot of the code in Visual Studio

看来崇高默认情况下并不突出这些错误。是否有一个设置让崇高智能足以突出这些错误?

+0

它不是在Sublime中实现的,就这些。我不知道你在这里会得到什么答案。 – panther 2015-01-21 11:50:14

+0

有没有什么办法让崇高的功能? – danielcooperxyz 2015-01-21 11:54:14

+0

也许Linter包,但我不确定。 – panther 2015-01-21 11:58:30

回答