2017-04-01 81 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