Is there any way to comment out text in textile?
Asked Answered
R

2

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.

Roselleroselyn answered 13/5, 2011 at 17:11 Comment(0)
M
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
-->
Minefield answered 14/5, 2011 at 5:10 Comment(1)
For me in the future, the solution <notextile><!-- comment goes here --></notextile> worked for multi-paragraph comments.Tubman
W
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.

Wed answered 29/9, 2013 at 15:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.