📄 htmlformat.tag
字号:
<%@ tag body-content="scriptless" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- Capture the body evaluation result in a variable --%>
<jsp:doBody var="bodyRes" />
<%-- Convert special characters to character entities --%>
<c:set var="escapedBody" value="${fn:escapeXml(bodyRes)}" />
<%-- Replace "[code]/[/code]" with "<pre>/</pre>" --%>
<c:set var="convBody"
value="${fn:replace(escapedBody, '[code]', '<pre>')}" />
<c:set var="convBody"
value="${fn:replace(convBody, '[/code]', '</pre>')}" />
<%-- Output the result --%>
${convBody}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -