Contents’ Syntax¶

Microbe supports Markdown syntax with several extensions.

Table extension

You can easily create HTML tables with this extension using the sytax established in PHP Markdown extra.

Thus, the following text

My first header | My second header
--------------- | ----------------
Cell 1          | Cell 2
Cell 3          | Cell 4

will be rendered as

My first header My second header
Cell 1 Cell 2
Cell 3 Cell 4

Codehilite extension

The CodeHilite extension follows the same syntax as regular Markdown code blocks, with one exception. The hiliter needs to know what language to use for the code block.

It will use Pygments to highlight syntax.

If the first line begins with three or more colons, the text following the colons identifies the language. The first line is removed from the code block before processing and line numbers are not used

:::python
def main(*args) :
    """
    Main function
    """
    if 'i' in 'this is a test' :
        print 'test'

will be rendered as:

def main(*args) :
    """
    Main function
    """
    if 'i' in 'this is a test' :
        print 'test'

Content alignment

The Markdown syntax does not come with a functionnality to easily align your contents.

Microbe comes with Mou syntax to center or right align your contents.

-> A center content <-
-> A right align content ->

will be rendered as

<div style="display:block;text-align:center;"> A center content </div>
<div style="display:block;text-align:right;"> A right align content </div>

Drad and drop

Microbe editor supports HTML5 drag and drop API. If your browser supports it you can drop pictures directly in your editor to upload it.

You can also drop plain text files to fill your editor with its content.