在 Textile 中,有没有注释文本的方法?

12

LaTeX 有 %,html 有 <\!-- 表示注释。

Textile 有没有注释文本的方法呢?我找不到相关信息,但似乎这是一个很好的功能。

2个回答

5

不完全是这样。似乎您可以使用包含HTML注释的单行HTML转义序列,它会被传递。但您可能希望像C预处理器注释那样完全删除它们?

==<!-- html comment -->==

或者你可以这样做,输出一个多行的HTML注释,但我怀疑这也不是你想要的:

notextile.  <!-- test 
test
test
-->

1
对于将来的我,这个解决方案 <notextile><!-- comment goes here --></notextile> 对于多段落注释起到了作用。 - mmarchin

1

TextPattern版本的Textile支持评论

语法是以三个井号和一个或两个句点开头的行。

###. This line will be treated as a comment.
So will this.

This line will be displayed.

###.. Blank lines are allowed in comments if you use two full stops.

This line is also a comment.

p. Starting a new block will end the comment.

目前,RedClothMylyn的Textile实现不支持这些注释。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接