官方说这样设置可以排除一部分 html 里面的标签不会格式化:
{
"html.format.unformatted": "abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var"
}
如果是不带标签的文本怎么来设置呢?比如#开头的这几行,不想格式化的:
<div class="focusImg">
<ul class="slidePic">
#set($picnewss = "")
#set($picnewss = $!{manualTool.picnews(11311)})
#foreach($picnews in $picnewss)
<li>
<a href="$!{picnews.target_url}" title="$!{picnews.title}" target="_blank">
<img src="$!{picnews.image_url}" alt="$!{picnews.title}" width="368" height="328">
<i class="bg"></i>
<p>$!{stringTool.substr($picnews.title,40,"...")}</p>
</a>
</li>
#end
</ul>
<ul class="hd">