最好能够格式化像这样的代码
<%- include('header')%>
<h1>
<%=name.toUpperCase() %>
</h1>
<p>hello,
<%= name%>
</p>
<%- include('footer')%>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
正则表达式
自己替换一下就行
设置vscode用户配置的文件关联,把ejs关联到html。
soonfy