当我使用百里香叶编写HTML页面时,在IntelliJ IDEA中出现语法错误,但是我能够正常运行该程序。
屏幕截图: https://raw.githubusercontent.com/oo0oo2015/TuChuang/master/Snipaste_2019-05-09_21-30-48.png
<!DOCTYPE html>
<html lang="zh-cmn-Hans" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Title</title>
</head>
<body>
<p th:text="${name}">name</p>
<p th:text="'Hello! ' + ${name} + '!'">hello world</p>
<p th:text="|Hello! ${name}!|">hello world</p>
</body>
</html>
答案 0 :(得分:0)
这是known bug。请关注YouTrack的票证以获取更新。
更新:该问题已修复,并且该修复应在下一个IntelliJ IDEA版本(2019.2)中可用。