2017-04-01 103 views
3

我正在使用最终版本,下面的代码工作正常。问题与糟糕的亮点,你可以看到下面。正在检查,看起来不像我需要一个额外的插件。有没有解决的办法?Intellij Thymeleaf语法突出显示不能正常工作

我在html文件页面的顶部使用了以下行。

<html lang="en" xmlns:th="http://www.thymeleaf.org"> 

enter image description here

<div class="gifs container"> 
    <div class="row"> 
     <div th:each="gif : ${gifs}" class="col s12 l4"> 
      <a th:href="@{'/gif/' + ${gif.name}}"> 
       <img th:src="@{'/gifs/' + ${gif.name} + '.gif'}" /> 
       <a href="#" th:class="(${gif.favourite}? 'un':'') + 'mark favorite'"></a> 
      </a> 
     </div> 
    </div> 
</div> 
+0

请[报告错误](https://youtrack.jetbrains.com/issues/IDEA)与[可重现的测试用例](http://stackoverflow.com/help/mcve)附上。 – CrazyCoder

+0

@CrazyCoder引发的问题:https://youtrack.jetbrains.com/issue/IDEA-170803#u=1491053261100 – cubeb

回答

0

据我知道有没有办法,因为有添加模型参数控制器之间没有连接的Thymeleaf插件可以推断GIF和GIF变量的类型和模板本身。 IntelliJ中的Thymeleaf集成工作正常,由th标示:标签未加下划线:p