问题描述
最好能够格式化像这样的代码
<%- include(’header’)%> <h1><%=name.toUpperCase() %> </h1> <p>hello,<%= name%> </p> <%- include(’footer’)%>
问题解答
回答1:正则表达式自己替换一下就行
回答2:设置vscode用户配置的文件关联,把ejs关联到html。
'files.associations': { '*.ejs': 'html'}
soonfy

问题描述
最好能够格式化像这样的代码
<%- include(’header’)%> <h1><%=name.toUpperCase() %> </h1> <p>hello,<%= name%> </p> <%- include(’footer’)%>
问题解答
回答1:正则表达式自己替换一下就行
回答2:设置vscode用户配置的文件关联,把ejs关联到html。
'files.associations': { '*.ejs': 'html'}
soonfy
相关文章:1. html5 - 有可以一次性把所有 css外部样式转为html标签内style=" "的方法吗?2. 为什么矛那里的 <a href=" " 这地方为什么是空的呢 ??3. 为什么总是提示我说Template "movieTemplate" not found,我路径都引对了呀4. <tr valign="top"> 看不懂5. MySQL"="自动 like6. node.js mysql Cannot find module "net" 和 "tls"和"fs" 的问题7. type="text/css"是什么意思?8. javascript - <div onclick="fun()"></div>这种fun函数只有写成全局函数才有效吗?9. background-image:url(" ")我的图片在桌面10. javascript - js怎么实现jq的addclass,removeclass,例如本来是 class="aa",要变成class="aa bb"

网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主