Changes between Version 1 and Version 2 of WikiHtml
- Timestamp:
- Jun 21, 2008, 6:11:58 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiHtml
v1 v2 1 = Wiki テキスト内で HTML を使用する=1 = Using HTML in Wiki Text = 2 2 3 HTML [wiki:WikiProcessors WikiProcessor] の機能によって、 Trac では Wiki コンテキスト内での HTML 利用が可能です。 3 Trac supports inserting HTML into any wiki context, accomplished using the HTML [wiki:WikiProcessors WikiProcessor]. 4 4 5 HTML 対応は内蔵機能であり、追加パッケージのインストールを必要としません。5 HTML support is built-in, and does not require installing any additional packages. 6 6 7 == H TML の使い方==8 Wiki エンジンにテキストブロックが HTML として取り扱われるよう、 ''html'' プロセッサを使用するという情報を与えます。 7 == How to Use HTML == 8 To inform the wiki engine that a block of text should be treated as HTML, use the ''html'' processor. 9 9 10 この例のような表現は:10 This example should explain: 11 11 {{{ 12 12 #!html 13 13 <pre class="wiki">{{{ 14 14 #!html 15 <h1 style="text-align: right; color: blue">HTML テスト</h1>15 <h1 style="text-align: right; color: blue">HTML Test</h1> 16 16 }}}</pre> 17 17 }}} 18 18 19 このように表示されます:19 Results in: 20 20 {{{ 21 21 #!html 22 <h1 style="text-align: right; color: blue">HTML テスト</h1>22 <h1 style="text-align: right; color: blue">HTML Test</h1> 23 23 }}} 24 24 25 Trac が HTML コードを表示する前にサニタイズすることに注意して下さい。つまり Javascript のイベントハンドラのような潜在的に危険なコードを使おうとしても、出力から削除されるということです。 25 Note that Trac sanitizes your HTML code before displaying it. That means that if you try to use potentially dangerous constructs such as Javascript event handlers, those will be removed from the output. 26 26 27 == より詳しい情報==27 == More Information == 28 28 29 29 * http://www.w3.org/ -- World Wide Web Consortium