:<source lang="sql">select * from table1</source>
:<source lang="sql">select * from table2</source>
不!!!我想要的是这样的:
:<source lang="sql">select * from table1
select * from table2</source>
--note the line break for the second SELECT statement!
--also note the ':' that indicates that I want it indented!
--when I try it this way, the <source> formatting for the second line disappears!
--I also tried adding the ':' to the second line -- that doesn't work, either!
这个我也试过了,还是不行!
:<source lang="sql">select * from table1<br />select * from table2</source>
--when I try this, the <br /> tag actually shows up; it does NOT break the line!
换句话说,我希望这两行都出现在同一个缩进的 标记中。
我如何让它工作?
我发现答案根本不是对项目符号列表使用 Wiki 标记。相反,使用 HTML 标记。
示例:
<ul>
<li>list 1</li>
<li>list 2
<source lang="sql">select * from table1
select * from table2</source>
</li>
</ul>
一旦我放弃了使用项目符号列表和缩进的 Wiki 标记方法,而是直接使用 HTML,它就完全符合我的要求。