⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insertdifftag.txt

📁 wiki建站资源 java编写的 很好用
💻 TXT
字号:
Inserts a diff between two pages.  The "Diff.jsp" places two variables into the JSP PageContext:

* ''insertdiff.old'' - The version number of the old version.
* ''insertdiff.new'' - The version number of the new version.

These have been parsed from the HTTP parameters by "Diff.jsp".

The resulting HTML uses a few CSS styles:

* TABLE.diff - The whole table gets this style.
* TD.diff - Each unchanged line gets this.
* TD.diffadd - Each added line gets this style.
* TD.diffrem - Each removed line gets this style.

----

!Usage

<wiki:InsertDiff page="<page name>" />

!Parameters

;__page__ : Page name.

!Example
{{{
<wiki:InsertDiff />
}}}

Might result into something like this:
{{{
   <table class="diff" border=0 cellspacing=0 cellpadding=0>
       <tr><td class="diff">Line 16 was replaced by line 16</td></tr>
       <tr><td bgcolor=#FF9933 class="diffrem">- [Sandbox/cens7.gif]</td></tr>
       <tr><td bgcolor=#99FF99 class="diffadd">+ Foobar.</td></tr>
   </table>
}}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -