📄 showcode.jsp
字号:
<%@ taglib uri="quote" prefix="quote" %>
<html>
<head>
<title>Quoted Java Code</title>
</head>
<body>
<p><img src="images/BEA_Button_Final_web.gif" align=right>
<font face="Helvetica">
<h1>Quoted Java Code</h1>
<blockquote>
<p> This JSP uses a custom tag to reformat some Java code
for presentation in a Web Browser using HTML. The evaluated
JSP contents of the custom tag are treaded as Java code and
are hilighted and reformated to be correctly presented in
HTML. Here, we use a JSP directive to include the actual Java
source code that implements the custom tag.
<quote:code>
<%@ include file="CodeTag.java" %>
</quote:code>
<h2> And here it is again, using the custom attributes to change
the color and font of the formated Java code:</h2>
<quote:code quoteColor="blue" commentColor="purple" defaultFont="face=Helvetica color=gray">
<%@ include file="CodeTag.java" %>
</quote:code>
</blockquote>
</font>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -