Differences between revisions 5 and 6
Revision 5 as of 2004-12-20 03:46:37
Size: 1413
Editor: ZoomQuiet
Comment: 请下载完整示范观看
Revision 6 as of 2009-12-25 07:15:06
Size: 1423
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
-- Zoom.Quiet [[[DateTime(2004-09-13T23:59:16Z)]]]
[[TableOfContents]]
-- Zoom.Quiet [<<DateTime(2004-09-13T23:59:16Z)>>]
<<TableOfContents>>
Line 10: Line 10:
 * [http://wiki.woodpecker.org.cn/moin.cgi/PyTextile#head-e0bea098abf9e3acaebdb26595ba00a2f1d8b29b 比较概述]  * [[http://wiki.woodpecker.org.cn/moin.cgi/PyTextile#head-e0bea098abf9e3acaebdb26595ba00a2f1d8b29b|比较概述]]
Line 13: Line 13:
 * [http://wiki.woodpecker.org.cn/moin.cgi/reST?action=AttachFile&do=view&target=reStructuredText.txt reStructuredText.txt] -- 或是一般使用 rst 作为结构化文本的后缀  * [[http://wiki.woodpecker.org.cn/moin.cgi/reST?action=AttachFile&do=view&target=reStructuredText.txt|reStructuredText.txt]] -- 或是一般使用 rst 作为结构化文本的后缀
Line 18: Line 18:
 * 就会生成: [http://220.248.2.35:7080/share/zqupload/tutorials/reST/ 结构化文本(reStructuredText)测试文档]  * 就会生成: [[http://220.248.2.35:7080/share/zqupload/tutorials/reST/|结构化文本(reStructuredText)测试文档]]
Line 20: Line 20:
   * attachment::reST.rar    * [[attachment::reST.rar]]

reStructureText 新结构化文本

-- Zoom.Quiet [2004-09-13 23:59:16]

Contents

  1. 概要
    1. 举例
    2. Tips

概要

是至今最标准,最全面的结构化文本格式!提供了一切文章需要的元素支持!

举例

  • 直接来看例子吧!
  • reStructuredText.txt -- 或是一般使用 rst 作为结构化文本的后缀

  • 使用 Python Docutils 模块的转换脚本:

   1 python rst2html.py reStructuredText.txt reStructuredText.htm

列表了所有重要的输出特性的一个效果文件!对比的看,立即会明白reST 是如何的了!

Tips

  • 如果使用 UltraEdit 之类的通用文本编辑器,在安装过 Docutils 后,只要加入类似以下的命令

python E:\LAMPS\CJKPython\Scripts\rst2html.py %F %P%n.htm
  • 就可以随时随地看到当前文档的HTML版本输出了!
    • 当然,也可以进一步定义自个儿喜欢的CSS来变化整体的效果!

reST (last edited 2009-12-25 07:15:06 by localhost)