Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[textile] Use strong emphasis in a code block
Anyone know how to use emphasis in a code block? Like so:
This is a code block, with *strong* text.
Can’t see a way to do this..all I get is the asterisk instead of the bold…
Last edited by jstubbs (2008-12-27 10:27:20)
Offline
Re: [textile] Use strong emphasis in a code block
This won’t work, ‘cause the all tags in the code block will not be parsed. The reason is: All between the generated <pre><code>
and </code></pre>
will not be formatted by browsers (HTML-Specs). It will be rendered as is.
It’s not a semantic HTML but you can give a block element (paragraph or some generic div) the appearance of a pre/code tag for instance:
p{overflow:auto;margin:1.5em 0;padding:5px;font-family:"Courier New",monospace;}. This is a code block, with *strong* text.
Won’t work in this forum, ‘cause the style attribute will be stripped.
Last edited by trenc (2008-12-27 11:24:24)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: [textile] Use strong emphasis in a code block
Thanks trenc, won’t use your code as I don’t want to change the styles already created for pre/code etc, but thanks for your help!
Offline