TxStyle · Textile Documentation

The Textile Markup (2.4) Reference for Textpattern


Block code

The block code directive will add <pre> and <code> tags.



Input (editable)

Browser
HTML

More about: Block code

1) For long blocks of code with blank lines in between: Use the extended block directive bc.. and end the block with p. or with another block tag.

bc.. # A self-enclosed textpattern tag:
< txp:images id="1,2,3" />

# A container tag:
< txp:images id="1,2,3" />
< txp:thumbnail wraptag="div" />
< txp:images />

2) For inline snippets of code: Wrap with the at @ character:

A line with @code@

3) Note: The pre. tag is similar to the bc. tag, but no <code></code> tags are used within a <pre> block.

Paste code into the box above.