showcode.jsp

来自「java的一系列产品中包括jsme,jmse,j2ee,本文件提供j2ee实现的」· JSP 代码 · 共 40 行

JSP
40
字号
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?