【发布时间】:2011-03-04 23:23:33
【问题描述】:
我正在尝试使用 DocUtils 和 reStructuredText 来注释 SQL 代码。当我在多行 cmets 中包含标记时,我可以让它工作。然后我使用 --Some text:: 来介绍每个代码块。
我无法使用内部超链接。我想写 - .. 步骤1_: 但解析器忽略了这一点,因为领先的评论。使用多线样式也失败了。有没有办法让它工作?
这是一个例子:
/*
==========
this query
==========
:Author: Me
Outline
==========
- Create table 1
- Create table 2
- Output the result
*/
-- _Step1: build the table::
create table table1
-- _Step2: use Step1_ to build table 2::
create table table2
【问题讨论】:
标签: sql restructuredtext docutils