Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

        def buildDoc():
    return PythonReader.read((        
      P [
       T(ITALIC, BOLD) [ u"Hello World" ],
       u", hee hee hee! ", T(url=u'http://www.google.com') [ u"This seems to work" ]
      ],
      L [
       [unicode(word) for word in ("One", "Two", "Three", "Four")]
      ],
      L [
        u"Introduction",
        LE [
          u"First sentence in the\nsub-section",
          u"Also some other stuff",
          L [
            u"Alpha",
            L [
              u"Beta\nWhomble",
              LE [ u"Beta", u"Whoop\nWhoa" ],
              u"Beta",
            ],
            u"Gamma",
            u"Gamma",
          ],
          u"Final sentence in the sub-section",
        ],
        T(BOLD) [ u"Conclusion" ],
      ],
      u"That's all, folks! ??!"
    ))
        


src/p/y/pyth-0.5.6/examples/writing/xhtml.py   pyth(Download)
 
if __name__ == "__main__":
    doc = pythonDoc.buildDoc()
    print docTemplate % XHTMLWriter.write(doc, pretty=True).getvalue()
 

src/p/y/pyth-0.5.6/examples/writing/rtf15.py   pyth(Download)
from pyth.plugins.rtf15.writer import Rtf15Writer
import pythonDoc
 
doc = pythonDoc.buildDoc()
 

src/p/y/pyth-0.5.6/examples/writing/rst.py   pyth(Download)
from pyth.plugins.rst.writer import RSTWriter
import pythonDoc
 
if __name__ == "__main__":
    doc = pythonDoc.buildDoc()

src/p/y/pyth-0.5.6/examples/writing/plaintext.py   pyth(Download)
from pyth.plugins.plaintext.writer import PlaintextWriter
import pythonDoc
 
doc = pythonDoc.buildDoc()
 

src/p/y/pyth-0.5.6/examples/writing/latex.py   pyth(Download)
from pyth.plugins.latex.writer import LatexWriter
import pythonDoc
 
if __name__ == "__main__":
    doc = pythonDoc.buildDoc()

src/p/y/pyth-HEAD/examples/writing/xhtml.py   pyth(Download)
 
if __name__ == "__main__":
    doc = pythonDoc.buildDoc()
    print docTemplate % XHTMLWriter.write(doc, pretty=True).getvalue()
 

src/p/y/pyth-HEAD/examples/writing/rtf15.py   pyth(Download)
from pyth.plugins.rtf15.writer import Rtf15Writer
import pythonDoc
 
doc = pythonDoc.buildDoc()
 

src/p/y/pyth-HEAD/examples/writing/rst.py   pyth(Download)
from pyth.plugins.rst.writer import RSTWriter
import pythonDoc
 
if __name__ == "__main__":
    doc = pythonDoc.buildDoc()

src/p/y/pyth-HEAD/examples/writing/plaintext.py   pyth(Download)
from pyth.plugins.plaintext.writer import PlaintextWriter
import pythonDoc
 
doc = pythonDoc.buildDoc()
 

src/p/y/pyth-HEAD/examples/writing/latex.py   pyth(Download)
from pyth.plugins.latex.writer import LatexWriter
import pythonDoc
 
if __name__ == "__main__":
    doc = pythonDoc.buildDoc()