Tokens / tags
Previous  Top  Next

Here's a brief description of each of the tags that are parsed by MacroHTML's macro-compiler.

They are loosely derived from those used by Wikipedia, as these are in common use.


Bold
is denoted by wrapping text in ** chars. Eg. **Bold** gives Bold
Italic
is denoted by wrapping text in // chars. Eg. //Italic// gives Italic
Underline
is denoted by wrapping text in __ chars. Eg. __Underline__ gives Underline
Monospace / quoted text
is denoted by wrapping it in '' chars.
Paragraphs
are denoted by using 2 or more newline characters in succession.
Headline levels
are denoted by wrapping text in 2 or more == chars. Eg. ==headline level 1== gives Headline Level 1
Links
are defined within square brackets. [[www.cnn.com]] would give www.cnn.com, whereas [[www.cnn.com|CNN News]] would give CNN News
Images
are displayed with the {{ tags. Left aligned {{images/CGI-guarantee.gif }} (note whitespace to left of filename)

Right aligned {{images/CGI-guarantee.gif }} (note whitespace to right of filename)

Centre aligned {{ images/CGI-guarantee.gif }} (note whitespace either side of filename)

And the images can have alternate text (incase they don't display). Use the format {{images/CGI-guarantee.gif|Alternate text}}
Images as links

Images can be used as links by combining the link and image tag formats like this: [[autoprintpro.html|{{images/autoprint-small.jpg }}]]

(that gives you a link to autoprintpro.html displayed as an image that is right aligned)

Lists
Unordered lists are created as follows:

* This is item one ( * This is item one)
* This is item two ( * This is item two)
* This is item three ( * This is item three)

List items start with two spaces, followed by a *, then a space, then the text followed by a newline. Ordered lists are the same, except that they use the '-' character rather than the '*'. The final list item is denoted by two or more newlines. List items can also be used in menus, as links. For example:

* Autoprint is created with: * [[autoprintpro.html|Autoprint]]
* MacroHTML is created with: * [[macrohtml.html|//MacroHTML//]]

It is worth noting that the html ul, /ul ol and /ol tags are created by MacroHTML if they are not found. If they are there, they remain intact. This is so that styles can be preserved - for example, see the 'Our software' and 'MacroHTML' lists to the left and the 'Home' 'Downloads' 'FAQ' and 'Contact' menu items at the top of the page of our website.

Linebreaks
Use a Wiki like syntax, for example:

This is some text with some linebreaks\\ blabla

Note that the two backslashes are only recognized at the end of a line\\
or followed by\\ a whitespace

Else \\this happens without it.
(source http://wiki.splitbrain.org/wiki:syntax)












.