You can enclose a bit of text in an HTML span tag by enclosing it in percent signs. Then you can apply attributes to the span (see attributes).
I can put in a %(myclass)span with a class% like this.
I can put in a span with a class like this.
To mark code in your text, surround the code with at signs.
On the command line, you can just type @redcloth@.
On the command line, you can just type redcloth.
You can insert a block of code with the bc. block signature.
bc. # Output "I love Ruby"
say = "I love Ruby"
puts say
# Output "I love Ruby"
say = "I love Ruby"
puts say
Use bc.. and the block of code will continue to include blank lines until it encounters another block signature such as p.
bc.. # Output "I love Ruby"
say = "I love Ruby"
puts say
# Output "I *LOVE* RUBY"
say['love'] = "*love*"
puts say.upcase
p. And that is how you do it.
# Output "I love Ruby" say = "I love Ruby" puts say# Output "I *LOVE* RUBY" say['love'] = "*love*" puts say.upcase
And that is how you do it.
You can use HTML right in your paragraph text, presuming the site administrator has not set :filter_html or :sanitize_html restrictions.
I can use HTML directly in my <span class="youbetcha">Textile</span>.
I can use HTML directly in my Textile.
You can use HTML freely within your RedCloth 4 Textile. HTML tags on a line by themselves will not be mangled. Don’t forget to leave a blank line after any Textile, just like usual.
<div id="shopping-cart">
<form action="form_action" method="get">
h3. Your cart
* Item one
* Item two
<p><input type="submit" value="Check Out" /></p>
</form>
</div>
You can have RedCloth skip a chunk of text with the <notextile> tag or double-equals.
<notextile>
Don't touch this!
</notextile>
Use ==*asterisks*== to say something *strongly*.
Use *asterisks* to say something strongly.
Notextile can also be used as a normal or extended Textile block.
notextile. This has *no* textile formatting, see?
notextile.. And this notextile block
Just keeps going and going.
p. Until you end it with another block.
Until you end it with another block.
Preformatted text can be put in a pre. block and its whitespace will be preserved. pre. is almost identical to bc., except that <code>...</code> tags are not used within the <pre> block.
pre. Text in a pre block
is displayed in a fixed-width
font. It preserves
s p a c e s, line breaks
and ascii bunnies.
_ _
\`\ /`/
\ V /
/. .\
=\ T /=
/ ^ \
{}/\\ //\
__\ " " /__
(____/^\____)
Text in a pre block
is displayed in a fixed-width
font. It preserves
s p a c e s, line breaks
and ascii bunnies.
_ _
\`\ /`/
\ V /
/. .\
=\ T /=
/ ^ \
{}/\\ //\
__\ " " /__
(____/^\____)