<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<title>我的代码收藏 - 我的应用 - ITeye.com</title>
<link rel="search" type="application/opensearchdescription+xml" href="/open_search.xml" title="ITeye" />
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
</script>
需要改shCoreCommon.js 60行的代码
改成
div.innerHTML = highlighter.language+'代码'; //highlighter.language.capitalize()<br/>
<link href="D:/desktop-bak/templete/js/syntaxhighlighter/SyntaxHighlighter.css?1324994303" media="screen" rel="stylesheet" type="text/css" />
<script src="D:/desktop-bak/templete/js/syntaxHighlighter/shCoreCommon.js?1325907333" type="text/javascript"></script><script>
function code_favorite_preview(){
var language = "java";
var div = document.createElement("DIV");
var pre_html = "<pre name='code1' class='"+language+"'>"+$("#code_body").val()+"</pre>";
$("#code_preview").html(pre_html);
dp.SyntaxHighlighter.HighlightAll('code1', true, true);
$("#code_body").hide();
$("#code_preview").show();
}
function code_favorite_preview_cancle(){
$("#code_body").show();
$("#code_preview").hide();
}
function onload(){
dp.SyntaxHighlighter.HighlightAll('code2', true, true);
}
$(function(){
onload();
});
</script>
<style>
</style>
</head>
<body>
<a οnclick="code_favorite_preview_cancle(); return false;" id="editor_tab_code" href="#" class="activetab">编辑</a></li>
<a οnclick="code_favorite_preview();; return false;" id="editor_tab_preview" href="#" class="">预览</a></li>
<textarea id="code_body" style="width:99%;height:300px" name="code_favorite[code_body]"></textarea>
<div id="code_preview" style="display:none"></div><br/>
页面加载时
<pre name='code2' class="sql">--创建存储过程
create or replace procedure test(
o_update_time out date, --输出参数
i_mobile call_cur_tone.mobile%type --输入参数;表示跟call_cur_tone这个表中的mobile字段一样的数据类型
) is
--这里定义内部变量
begin
select c.update_time into o_update_time from users c where c.mobile=i_mobile;
end test;
--oralce 执行存储过程
declare
o_update_time date;
i_mobile varchar2(20);
begin
i_mobile:='15088059578'; --带进去的手机号,
test(o_update_time,i_mobile); --test 是存储过程,二个参数,一个带进去,一个带出来
dbms_output.put_line(o_update_time);
dbms_output.put_line(to_char(o_update_time,'yyyy-mm-dd hh24:mi:ss'));
end;
--dual 是一个虚拟表 转换成char类型
select to_char(to_date('2002-08-26','yyyy-mm-dd'),'day') as day from dual;
--转换成date类型
select to_date('2002-08-26 10:10:10','yyyy-mm-dd hh24:mi:ss') as time from dual;
--oralce 控制台输出字符
begin
dbms_output.put_line('111');
dbms_output.put_line('222');
dbms_output.put_line('333');
dbms_output.put_line('444');
end;
--oralce 控制台输出参数
declare
i_msg varchar(20);
begin
i_msg:='success';
dbms_output.put_line(i_msg);
end;</pre>
</body>
</html>
一下js包,已经改过了