jemdoc – example page
This page shows example jemdoc source and output side by side. (The spacing of the ‘page’ on the left is consequently incorrect.)
jemdoc – example page |
# jemdoc: menu{MENU}{example.html}
= jemdoc -- example page | |
|
If the first line of the file starts with |
If the first line of the file starts with +\# jemdoc+, special functions like
[menu.html menus] will be used.
| |
ExampleHere are some text features. I could link somewhere or
insert a raw link to another page like download.html. I could use
|
== Example | |
|
I could write special characters like h (\) in front of those characters. Or automatically detect an email address. |
I could write special characters like
\#, \$ and \+ by just using a backslash
(\\) in front of those characters. Or
automatically detect an
[jdoe@example.edu email address].
| |
|
Save the file as |
~~~ Save the file as +index.jemdoc+, say, and simply
call +jemdoc index+ (after [download.html
downloading jemdoc], of course).
~~~
| |
Next bit, next heading level twoGetting into level three now |
== Next bit, next heading level two | |
|
Why not use a list
|
Why not use a list
| |
|
Or perhaps a
|
Or perhaps a
| |
|
| |
Finally, a few more blocksThis ‘section’ features “smart quotes”. |
== Finally, a few more blocks | |
|
Simple block
This is a simple text block, with a title. Notice how the previous line has only one set of braces ({}). |
~~~ {Simple block}
This is a simple text block, with a title. Notice how the previous line has only
one set of braces (\{\}).
~~~
| |
|
Interactive Python listing
>>> print 'Interactive Python code.'
'Interactive Python code.'
|
~~~ {Interactive Python listing}{pyint}
>>> print 'Interactive Python code.' 'Interactive Python code.'
~~~
| |
Plain code block with no title. |
~~~ {}{}
Plain code block with no title.
~~~
| |
|
You might need 2–3 different-sized dashes — they can be useful. Now we're done! |
You might need 2--3 different-sized dashes---they can be useful. Now we're done!
|