12

LaTeX has %, html has <\!-- to denote that a comment folows.

Does textile have anyway of commenting out text? I couldn't find one, and it seems like it would be a nice feature to have.

Adriaan
  • 17,741
  • 7
  • 42
  • 75
eydaimon
  • 121
  • 3

2 Answers2

5

Not really. It seems you can do a single line HTML escape sequence containing an HTML comment which is passed through. But you probably want something more like the C Preprocessor comments that are simply stripped out completely?

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

Or you could do this, which outputs a multiline html comment, but I doubt it's what you want either:

notextile.  <!-- test 
test
test
-->
Warren P
  • 65,725
  • 40
  • 181
  • 316
1

The TextPattern version of Textile does support comments.

The syntax is to have a line beginning with three hashes and one or two full stops.

###. 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.

Currently, the RedCloth and Mylyn implementations of Textile do not support these comments.

Richie Cotton
  • 118,240
  • 47
  • 247
  • 360