| Markup Conversion | ||
|---|---|---|
![]() | ![]() | |
| Task Editor Integration | Textile Syntax | |
Lightweight markup is designed to be readily converted to HTML. WikiText provides a means to convert markup to:
toc.xml)These conversions can be made by right-clicking any .textile, .mediawiki, or .tracwiki resource in the Eclipse UI:

Performing a conversion from the UI will cause corresponding files (*.xml, *.html, *-toc.xml) to be created in the same folder as the selected file(s).
More control over the conversion process can be achieved by using Ant build scripts (described below).
Ant build scripts may also be used to drive a markup conversion. The following is an example of how to drive conversion from Textile markup to Eclipse help format (to HTML and toc.xml):
<path id="wikitext.classpath">
<fileset dir="${eclipse.home}/plugins">
<include name="org.eclipse.mylyn.wikitext.*core.jar"/>
</fileset>
</path>
<taskdef classpathref="wikitext.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
<target name="generate-help" depends="init" description="Generate Eclipse help from textile source">
<wikitext-to-eclipse-help markupLanguage="Textile"
multipleOutputFiles="true"
navigationImages="true">
<fileset dir="${basedir}">
<include name="help/*.textile"/>
</fileset>
<stylesheet url="styles/help.css"/>
<stylesheet url="styles/main.css"/>
</wikitext-to-eclipse-help>
</target>
Similar Ant scripts can be used to convert to HTML:
<target name="generate-html" depends="init" description="Generate HTML from textile source">
<wikitext-to-html markupLanguage="Textile">
<fileset dir="${basedir}">
<include name="help/*.textile"/>
</fileset>
<stylesheet url="styles/main.css"/>
</wikitext-to-html>
</target>
Conversion using Ant is used by the WikiText project to create help content. We find that writing help content in Textile markup is much easier than writing DocBook or HTML.
The <stylesheet> entries in the above examples are optional; these cause an HTML link to one or more stylesheets to be added to the head of the generated HTML document.
WikiText can convert markup to DocBook
<wikitext-to-docbook markupLanguage="Textile">
<fileset dir="${textile.root.dir}">
<include name="**/*.textile"/>
</fileset>
</wikitext-to-docbook>
You can use WikiText first to convert your Textile markup to DocBook then use the DocBook XSL stylesheets to convert the DocBook to Eclpse help content, HTML, pdf or other formats. For more information on using the DocBook XSL stylesheets please refer to the DocBook XSL project
![]() | ![]() | ![]() |
| Task Editor Integration | Textile Syntax |