mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Fix code block example
use `<code>` (as it's still semantically code that we're marking up) and make the example actually multiple lines...
This commit is contained in:
@@ -24,7 +24,9 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
Or, code blocks. Use `<pre>`s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the `.pre-scrollable` class, which will set a max-height of 350px and provide a y-axis scrollbar.
|
Or, code blocks. Use `<pre>`s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the `.pre-scrollable` class, which will set a max-height of 350px and provide a y-axis scrollbar.
|
||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<pre><p>Sample text here...</p></pre>
|
<pre><code><p>Sample text here...</p>
|
||||||
|
<p>And another line of sample text here...</p>
|
||||||
|
</code></pre>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
|
|||||||
Reference in New Issue
Block a user