style
attribute for the element for which you want to customize ther style. This way (which work exactly as in HTML) is much more simple but of course you will have to specify the style each time you need to<title title="the title" class="red" />If you use a Custom StyleSheet with the following rule, this title will appear in red:
h2.red { color: red; }
<article desc="an article"> <par> This is a very simple article. </par> </article>will have the same result as:
<article desc="an article"> This is a very simple article. </article>
<term term="term 1">The definition</term> <term term="faq">The <ref id="faq" desc="FAQ" /></term>Result:
<article desc="my article"> This is the text which refer to the ontology<word /> concept. </article>In this other example, the "OWL" word in the article is associated with the "ontology" word in the glossary.
<article desc="my article"> This is the text which refer to the OWL<word word="ontology" /> concept. </article>
hasNotesTooltips
property is set to true for the command-line or configuration file.Present a first note<note>the first note</note> Present a second note<note id="myID">the second note</note> Present the second note a second time<note id="myID"/>
year-month-day
Present a citation<cite href="http://docs.oracle.com/javase/8/docs/api/index.html" desc="the external link" publisher="Oracle">the citation note</cite>Result: Present a citation[1]
This a a piece of computer <code>code</code> This a <code><ref id="faq" desc="link" /> formatted as code</code>The result will be:
code
pre
element. Such as for example:
<pre> my pre content </pre>In this case, you will need to escape the < and > characters if they appear in the content.
pre
will be defined. For example:
<pre url="thePreFile" />Here the
preFile
is a file which is under the doc-files
sub-directory and contain the same "my pre content" text. In this case, you don't need to escape the < and > characters if they appear in the content[3]
<pre syntax="java"> public void toto(int i) { _ System.out.println(i); } </pre>will have the following result:
public void toto(int i) { System.out.println(i); }
<pre> first line second line </pre>Result:
first line second line
<pre> first line in <font color="blue">blue</font> second line </pre>Result:
first line in blue second line
<pre boxed="true"> first line second line </pre>Result:
first line second line
<pre boxed="shadow"> first line second line </pre>Result:
first line second line
<pre color="#FFFF00" boxed="true"> first line second line </pre>Result:
first line second line
<ul> <li>The XML file: <source syntax="xml"><root value="blue"/root></source></li> </ul>Result:
<root value="blue"/>
<blockquote> this is a text with two lines inside a blockquote <br/> the second line </block>Result:
this is a text with two lines inside a blockquote
the second line
<block border="shadow"> this is a text with two lines inside a block <br/> the second line </block>Result:
dateAndTime
type<date date="2015-08-08" /> <date date="2015-08-08" date2="2015-12-08" /> <date date="2015-08-08" date2="2015-12-08" type="dateAndTime" />Result:
<messageBox type="warning"> this a text with two lines inside a message box <br/> the second line <messageBox>Result:
<box> this is a boxed <code>text</code> </box>Result:
code
<box width="unlimited"> this is a boxed <code>text</code> </box>Result:
code
<box width="80%" position="center" > this is a boxed <code>text</code> </box>Result:
code
This is an <email mail="johndoe@gmail.org" desc="johndoe email"</a>Result: This is an johndoe email
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
This is an <archiveurl archive="https://web.archive.org/web/20231215081820/https://www.marmottan.fr/expositions/morisot-sacriste/">morisot-sacriste</a>or
This is an <archiveurl href="https://www.marmottan.fr/expositions/morisot-sacriste/">morisot-sacriste</a>
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
This is an article about <wikipedia lang="fr" path="Java (langage)" />Result: This is an article about This is an article about Java (langage)
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
This is an article about <mediawiki wiki="wikipediaFR" path="Java (langage)" />Result: This is an article about Java (langage)
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
<video path="jtluNyIzfQ4" position="left" width="200" />Result:
<video path="http://www.w3schools.com/tags/movie.mp4" position="left" width="200" type="mp4" />Result:
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
<audio path="https://www.w3schools.com/html/horse.mp3" type="audio/mpeg" />Result:
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
<javadoc path="java.awt.Button" /> <javadoc api="JAVASE9" path="java.awt.Button" /> <javadoc api="JAVASE10" module="java.desktop" path="java.awt.Button" /> <javadoc api="JAVASE11" module="java.desktop" path="java.awt.Button" />But this declaration is invalid:
<javadoc api="JAVASE11" path="java.awt.Button" />
java.lang
package. For example, these declarations are valid:This is a link to the <javadoc path="Float" /> class This is a link to the <javadoc path="java.awt.Button" member="setLabel(String)" /> method
This is a link to <javadoc path="java.awt.Button" /> This is a link to <javadoc path="java.awt.geom.Rectangle2D$Float" /> This is a complete link to <javadoc path="java.awt.Button" full="true"/> This is a link to <javadoc path="java.awt.Button" member="setLabel(java.lang.String)" /> This is a link to <javadoc path="java.awt.Button" member="setLabel(java.lang.String)" full="member"/> This is a link to the <javadoc path="java.awt.geom" type="package" /> packageResult: This is a link to Button
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
<dotnetdoc path="System.AppDomain"/> <dotnetdoc location="https://docs.microsoft.com/en-us/dotnet/api/?view=netcore-3.1" path="System.AppDomain"/>
<dotnetdoc path="System.AppDomain"/> <dotnetdoc path="System.AppDomain" member="CreateDomain(System.String)"/>
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
<qtdoc location="http://doc.qt.io/qt-5.12/" path="QAbstractAxis"/>
This is a link to <qtdoc path="QAbstractAxis" /> This is a link to <qtdoc path="QAbstractAxis" member="AxisType" type="enum" /> This is a link to <qtdoc path="QAbstractAxis" member="alignment" type="property" /> This is a link to <qtdoc path="QAbstractAxis" member="setRange" type="method" />Result: This is a link to QAbstractAxis
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
<pydoc module="array"/>
This is a link to <pydoc module="array" /> This is a link to <pydoc module="array" member="fromfile(f, n)" /> This is a link to <pydoc module="textwrap" class="TextWrapper" member="width" />Result: This is a link to array
false
to not check the validity of the link even if the configuration property specifies that links should be checked[4]
<ul> <li>first element</li> <li>second element</li> </ul>Result:
<ol> <li>first element</li> <li>second element</li> </ol>Result:
<ol bullet="alpha" start="c"> <li>first element</li> <li>second element</li> </ol>Result:
<tree fillColor="magenta" borderColor="black" boxed="true" > <li>parent <li>child 1</li> <li>child 2</li> </li> </tree>Result:
<setAPIURL url="http://docs.oracle.com/javase/9/docs/api/" /> <javadoc path="java.awt.Button"/> <javadoc path="java.lang.String"/>It is equivalent to:
<javadoc location="http://docs.oracle.com/javase/9/docs/api/" path="java.awt.Button"/> <javadoc location="http://docs.oracle.com/javase/9/docs/api/" path="java.lang.String"/>
<setBaseURL path="href" /> <a href="theFile.xml">The ref</a>Is equivalent to:
<a href="href/theFile.xml">The ref</a>
<setBaseURL />For example, the following:
<setBaseURL path="href" /> <a href="theFile.xml">The ref</a> <setBaseURL /> <a href="theFile2.xml">The ref 2</a>Is equivalent to:
<a href="href/theFile.xml">The ref</a> <a href="theFile2.xml">The ref</a>
class
(the default), interface
, or enum
field
elements, declaring the fields of the classmethod
elements, declaring the methods of the classfield
and method
elements have the following attributes:<javaAPI path="JButton" modifiers="public">An implementation of a "push" button. <method member="AccessibleContext getAccessibleContext()">Gets the AccessibleContext associated with this JButton</method> <method member="setDefaultCapable(boolean defaultCapable)">Sets the defaultCapable property, which determines whether this button can be made the default button for its root pane.</method> <method member="setDefaultCapable(int defaultCapable)">Sets the defaultCapable property, which determines whether this button can be made the default button for its root pane.</method> </javaAPI>will show the following content:
public class JButton |
---|
Modifier and Type | Method and Description |
---|---|
AccessibleContext | getAccessibleContext()
Gets the AccessibleContext associated with this JButton
|
void | setDefaultCapable(boolean defaultCapable)
Sets the defaultCapable property, which determines whether this button can be made the default button for its root pane.
|
void | setDefaultCapable(int defaultCapable)
Sets the defaultCapable property, which determines whether this button can be made the default button for its root pane.
|
class
(the default)field
elements, declaring the variables of the classmethod
elements, declaring the methods of the classfield
and method
elements have the following attributes:<pythonAPI path="Class">Representation of a class documentation <field member="doc">A mapping from identifier name to a Doc objects</field> <method member="class_variables(self, include_inherited=True, sort=True)"> Returns an optionally-sorted list of Variable objects that represent this class class variables.</method> </pythonAPI>will show the following content:
class Class |
---|
var | doc
A mapping from identifier name to a Doc objects
|
---|
def | class_variables(self, include_inherited=True, sort=True)
Returns an optionally-sorted list of Variable objects that represent this class class variables.
|
---|
<apidoc lang="java" type="class" path="JButton" modifiers="public">An implementation of a "push" button. <element type="method" path="AccessibleContext getAccessibleContext()">Gets the AccessibleContext associated with this JButton</element> <element type="method" path="setDefaultCapable(boolean defaultCapable)">Sets the defaultCapable property, which determines whether this button can be made the default button for its root pane.</element> <element type="method" path="setDefaultCapable(int defaultCapable)">Sets the defaultCapable property, which determines whether this button can be made the default button for its root pane.element</element> </apidoc>This represents the same API as for the javaAPI example
<moreInfo id="faq" desc="the FAQ" /> Text after the tag.Result:
<moreInfo> <info id="faq" /> <info id="justification" /> </moreInfo>Result:
<seeArticle id="faq" desc="the FAQ" /> Text after the tag.Result:
An image:<img id="image1" valign="middle" width="40" /> The same image but bigger: <img id="image1" width="20%" /> The same image image with a border: <img id="image1" width="20%" border="true" /> The same image image with a border and a caption: <img id="image1" width="20%" border="true" caption="the caption" /> The same image image with a shadowed border: <img id="image1" width="20%" border="shadow" /> The image aligned on the left: <img id="image1" width="40" position="left"/> An SVG image:<img id="svgLogo" width="40" />Result: An image:
![]() |
|
<resource href="myResource.xml">Example</resource>
<resource id="resource1">Example</resource>
<resource id="resource1">Example resource</resource>Result: Example resource
_index_
or _INDEX_
name for the reference id. For example:The <ref id="_index_" />
The <ref id="the reference" desc="the references"/>It is simpler to write:
The <ref id="the reference" />sNote that only letters and digits will be processed in this way.
<article id="thisArticle" desc="my article"> <title title="first chapter"/> ... </article>This article can be referenced through any of the following constructions:
<ref id="thisArticle" /> <ref id="my article" /> <ref id="my_article" />The article chapter be referenced through any of the following constructions:
<ref id="thisArticle#first chapter" /> <ref id="thisArticle#first_chapter" /> <ref id="my article#first chapter" /> <ref id="my_article#first_chapter" />
<catRef id="mycategory" desc="the category" />
<glossaryRef desc="the Glossary" />
<anchor id="theAnchor" desc="anchor" />
<template desc="my template"> <title title="first template chapter"/> some text in the template. </template>This template can be included like for the ref element, for example:
<include id="my template" />For example, if we have the following article:
<article desc="an article"> This is a very simple article. <include id="my template" /> <see id="anotherArticle" desc="the other linked article" text="example of a SeeAlso element" /> <cat id="myCategory" /> </article>
<article desc="an article"> This is a very simple article. <title title="first template chapter"/> some text in the template. <see id="anotherArticle" desc="the other linked article" text="example of a SeeAlso element" /> <cat id="myCategory" /> </article>
this is a line with a <esc text=\"<\" />The result will be as the XML file have been set as:
this is a line with a <![CDATA[<]]>
<todo />The following example shows a TODO with a reason:
<todo reason="this is the reason"/>Note that it is possible to show the number of TODOs in the wiki by the "todo" property (see properties ).
number of TODOs: ${todo}. number of errors: ${errors}. todolist: <todolist />Result:
This is the previous text<comment comment="the word could be different"/>The following example adds a user comment with a date and a user name:
This is the previous text<comment comment="the word could be different" date="2022-03-28" user="Herve"/>Note that it is possible to show the number of comments in the wiki by the "comment" property (see properties ).
commentlist: <commentlist: />
<table caption="table caption"> <tableHeader> <column>first column</column> <column>second column</column> </tableHeader> <row> <cell>name</cell> <cell>value</cell> </row> <row> <cell color="#00FF00">name2</cell> <cell>value2</cell> </row> </table>Result:
first column | second column |
---|---|
name | value |
name2 | value2 |
<table> <tableHeader> <column width="200">first column</column> <column width="300">second column</column> </tableHeader> <row> <cell>name</cell> <cell>value</cell> </row> <row> <cell>name2</cell> <cell>value2</cell> </row> </table>Result:
first column | second column |
---|---|
name | value |
name2 | value2 |
<math> <mi>a</mi> <msup> <mi>x</mi> <mn>2</mn> </msup> </math>Result:
<html> <font style="color:blue">Embedded html content</font> </html>Result:Embedded html content
<map width="200" height="200"> <mapBounds latCenter="34.070" lonCenter="-118.73" zoomLevel="5" /> </map>Result:
<article desc="an article"> <condition condition="myPack"> <if> The text inside the if for myPack (will be added if "myPack" is present). </if> <else> The text inside the else for myPack (will be added if "myPack" is absent). </else> </condition> </article>Example with "property":
<article desc="an article"> <condition property="myProperty"> <if> The text inside the if, will be added if "myProperty" exists. </if> <else> The text inside the else, will be added if "myProperty" does not exist. </else> </condition> </article>Example with "property" and "value":
<article desc="an article"> <condition property="myProperty" value="true"> <if> The text inside the if, will be added if "myProperty" exists and its value is "true". </if> <else> The text inside the else, will be added if "myProperty" does not exist or its value is not "true". </else> </condition> </article>
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.