My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
============
Page Title
============
----------
Subtitle
----------


Heading 1
=========

| A line block
| where newlines are preserved

A paragraph with *italic* and **bold** and an ``inline literal``.

This is a blockquote.

So is this.

Heading 2
---------

* A bullet list
* The second item
* The third item

#. An enumerated list
#. again
#. again twice I say...

Heading 3
~~~~~~~~~

This is a literal block::

import module
from othermodule import something

MODULE_LEVEL_CONSTANT = 3

def function(arg, arg2=None):
"""A docstring."""

# a comment
while arg:
arg -= 1
return arg2

Heading 4
#########

It looks much prettier rendered by pygments:

.. code-block:: python

import module
from othermodule import something

MODULE_LEVEL_CONSTANT = 3

def function(arg, arg2=None):
"""A docstring."""

# a comment
while arg:
arg -= 1
return arg2


class ClassName(BaseClass):

def __init__(self, arg):
# constructor
self.value = arg
if some_condition:
raise Exception('Ouch!!')

instance = ClassName('foo')

Which can also do Ruby:

.. code-block:: ruby

require "module"

module Namespace

MODULE_LEVEL_CONSTANT = 3

def function(first, second)
# last expression evaluated is returned
first + second
end

class ClassName < BaseClass
attr_reader :value
def initialize(arg)
# constructor
@value = arg
end
end

end

instance = Namespace::ClassName.new 'fish'


Or even C#:


.. code-block:: csharp

class Program
{
static void Main(string [] args)
{
Console.WriteLine("Hello, world");
}
}

Change log

r88 by fuzzyman on Aug 19, 2009   Diff
Support for title, subtitle and headings
in Silverlight output.
Go to: 
Project members, sign in to write a code review

Older revisions

r53 by fuzzyman on Aug 13, 2009   Diff
Adding a test document
All revisions of this file

File info

Size: 1956 bytes, 120 lines
Powered by Google Project Hosting