Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://kodomo.cmm.msu.su/trac/tanchiki/wiki/WikiHtml?action=diff&version=1
Äàòà èçìåíåíèÿ: Unknown
Äàòà èíäåêñèðîâàíèÿ: Mon Apr 11 02:34:41 2016
Êîäèðîâêà: IBM-866
WikiHtml (diff) òÀÓ Tanchiki

Changes between Initial Version and Version 1 of WikiHtml


Ignore:
Timestamp:
11/20/10 16:22:18 (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiHtml

    v1 v1 ˆà
    ˆà1= Using HTML in Wiki Text =ˆà
    ˆà2ˆà
    ˆà3Trac supports inserting HTML into any wiki context, accomplished using the HTML [wiki:WikiProcessors WikiProcessor].ˆà
    ˆà4ˆà
    ˆà5HTML support is built-in, and does not require installing any additional packages.ˆà
    ˆà6ˆà
    ˆà7== How to Use HTML ==ˆà
    ˆà8To inform the wiki engine that a block of text should be treated as HTML, use the ''html'' processor. ˆà
    ˆà9ˆà
    ˆà10This example should explain:ˆà
    ˆà11{{{ˆà
    ˆà12#!htmlˆà
    ˆà13<pre class="wiki">{{{ˆà
    ˆà14#!htmlˆà
    ˆà15&lt;h1 style="text-align: right; color: blue"&gt;HTML Test&lt;/h1&gt;ˆà
    ˆà16}}}</pre>ˆà
    ˆà17}}}ˆà
    ˆà18ˆà
    ˆà19Results in:ˆà
    ˆà20{{{ˆà
    ˆà21#!htmlˆà
    ˆà22<h1 style="text-align: right; color: blue">HTML Test</h1>ˆà
    ˆà23}}}ˆà
    ˆà24ˆà
    ˆà25Note 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ˆà
    ˆà27Since 0.11, the filtering is done by Genshi, and as such, the produced output will be a well-formed fragment of HTML. In other words, this mean that you can no longer use two HTML blocks, one for opening a <div>, the second for closing it, in order to wrap arbitrary wiki text.ˆà
    ˆà28The new way to wrap any wiki content inside a <div> is to use the ''div'' Wiki  processor:ˆà
    ˆà29ˆà
    ˆà30{{{ˆà
    ˆà31{{{ˆà
    ˆà32#!div class=important style="border: 2pt solid; text-align: center"ˆà
    ˆà33This is the ''only'' way to go in Trac 0.11ˆà
    ˆà34}}}ˆà
    ˆà35}}}ˆà
    ˆà36ˆà
    ˆà37Results in:ˆà
    ˆà38{{{ˆà
    ˆà39#!div class=important style="border: 2pt solid; text-align: center"ˆà
    ˆà40This is the ''only'' way to go in Trac 0.11ˆà
    ˆà41}}}ˆà
    ˆà42ˆà
    ˆà43Note that if you don't specify a CSS class, the `wikipage` class will be added, so that the special layout of headers is respected in the <div>. If you specify explicitly the padding property, you have to take this into account (tip: [http://getfirebug.com/ get FireBug]!).ˆà
    ˆà44ˆà
    ˆà45For spans, you should rather use the Macro call syntax:ˆà
    ˆà46{{{ˆà
    ˆà47 Hello [[span(''WORLD'' (click [#world-anchor here]), style=color: green; font-size: 120%, id=world-anchor)]]!ˆà
    ˆà48}}}ˆà
    ˆà49ˆà
    ˆà50Results in:ˆà
    ˆà51 Hello [[span(''WORLD'' (click [#world-anchor here]), style=color: green; font-size: 120%, id=world-anchor)]]!ˆà
    ˆà52ˆà
    ˆà53ˆà
    ˆà54== Images ==ˆà
    ˆà55If you want display an image inline, append the following: '''?format=raw''' after the file name.  For example, to display the Trac logo inline, use this syntax:ˆà
    ˆà56ˆà
    ˆà57{{{ˆà
    ˆà58 <img src="http://www.edgewall.org/gfx/trac_logo.png?format=raw" />ˆà
    ˆà59}}}ˆà
    ˆà60ˆà
    ˆà61{{{ˆà
    ˆà62#!htmlˆà
    ˆà63<img src="http://www.edgewall.org/gfx/trac_logo.png?format=raw" />ˆà
    ˆà64}}}ˆà
    ˆà65ˆà
    ˆà66ˆà
    ˆà67ˆà
    ˆà68== More Information ==ˆà
    ˆà69ˆà
    ˆà70 * http://www.w3.org/ -- World Wide Web Consortiumˆà
    ˆà71 * http://www.w3.org/MarkUp/ -- HTML Markup Home Pageˆà
    ˆà72ˆà
    ˆà73----ˆà
    ˆà74See also:  WikiProcessors, WikiFormatting, WikiRestructuredTextˆà