|
Size: 3411
Comment:
|
← Revision 5 as of 2011-08-03 11:00:47 ⇥
Size: 3415
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 24: | Line 24: |
| || {{{code}}} || `{{{code}}}` || [#code_example Example.] Wiki markup is ignored. || | || {{{code}}} || `{{{code}}}` || [[#code_example|Example.]] Wiki markup is ignored. || |
| Line 38: | Line 38: |
| [#color_code_example Example.] | [[#color_code_example|Example.]] |
| Line 47: | Line 47: |
| [[Anchor(italic_bold_example)]] | <<Anchor(italic_bold_example)>> |
| Line 60: | Line 60: |
| [[Anchor(code_example)]] | <<Anchor(code_example)>> |
| Line 63: | Line 63: |
| `{{{` [[BR]] `10 PRINT "Hello, world!"` [[BR]] `20 GOTO 10` [[BR]] `}}}` [[BR]] |
`{{{` <<BR>> `10 PRINT "Hello, world!"` <<BR>> `20 GOTO 10` <<BR>> `}}}` <<BR>> |
| Line 86: | Line 86: |
| [[Anchor(color_code_example)]] | <<Anchor(color_code_example)>> |
| Line 90: | Line 90: |
| `{{{#!python` [[BR]] `from colors import palette` [[BR]] `palette.colorize('python')` [[BR]] `}}}` [[BR]] |
`{{{#!python` <<BR>> `from colors import palette` <<BR>> `palette.colorize('python')` <<BR>> `}}}` <<BR>> |
General
- Use one or more blank lines to separate paragraphs.
Use [[BR]] to insert linebreaks into paragraphs.
Typeface
Name/Sample |
Markup |
Notes |
italic |
''italic'' |
Double single quotes. |
bold |
'''bold''' |
Triple single quotes. |
monospace |
`monospace` |
Single backticks. Wiki markup is ignored. |
code |
{{{code}}} |
Example. Wiki markup is ignored. |
underline |
__underline__ |
|
superscript |
^superscript^ |
|
subscript |
,,subscript,, |
|
smaller |
~-smaller-~ |
|
larger |
~+larger+~ |
|
Colorized Code
There are several ways to display colorized code formatting:
Start a special code block containing the parser's name: {{{#!parsername
Embed a file attachment bearing a supported extension (such as ".py") with inline:
Begin a page with the format processing instruction: #format parsername
To see the list of supported languages see HelpOnParsers.
Examples
Mixing ''italic'' and '''bold'''
Markup |
Result |
'''''Mix''' at the beginning'' |
Mix at the beginning |
'''''Mix'' at the beginning''' |
Mix at the beginning |
'''Mix at the ''end''''' |
Mix at the end |
''Mix at the '''end''''' |
Mix at the end |
Code
{{{
10 PRINT "Hello, world!"
20 GOTO 10
}}}
Result:
10 PRINT "Hello, world!" 20 GOTO 10
Superscript & Subscript
You might recall ''a''^2^ + ''b''^2^ = ''c''^2^ from your math lessons, unless your head is filled with H,,2,,O.
Result:
You might recall a2 + b2 = c2 from your math lessons, unless your head is filled with H2O.
Colorized Code, Method #1
{{{#!python
from colors import palette
palette.colorize('python')
}}}
Result:
BioHackersNet