Template:Pre: Difference between revisions
Template page
More actions
add optional parameter |
update |
||
| Line 3: | Line 3: | ||
---- | ---- | ||
Same as using <pre> tags but the text won't run off screen and instead will appear with a scrollbar. | Same as using <pre> tags but the text won't run off screen and instead will appear with a scrollbar. | ||
The optional parameter of ''style'' may be added for other css format options. For example <nowiki>{{pre |style=color:darkblue |My text here.}}</nowiki> | |||
'''Code:''' | '''Code:''' | ||
Revision as of 12:23, 18 November 2010
{{{1}}}
Same as using <pre> tags but the text won't run off screen and instead will appear with a scrollbar.
The optional parameter of style may be added for other css format options. For example {{pre |style=color:darkblue |My text here.}}
Code:
<pre style="overflow: auto;">{{{1}}}</pre>
Example:
{{pre|
000000000000000000 lines don't wrap 00000000000... etc.
}}
Gives:
000000000000000000 lines don't wrap 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000