Talk:Code hacks: Difference between revisions
No edit summary |
No edit summary |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 14: | Line 14: | ||
[[User:TiTnAsS|TiTnAsS]] 18:27, 30 October 2005 (CST) | [[User:TiTnAsS|TiTnAsS]] 18:27, 30 October 2005 (CST) | ||
---- | |||
Try using pre tags instead. <nowiki><pre>my code</pre></nowiki> | |||
--[[User:Lucifer|Lucifer]] 20:33, 30 October 2005 (CST) | |||
<pre> is evil; it prevents line wrapping, which can easily cause code to scroll horizontally. | |||
Can I suggest we make a <code class="block"> for such stuff? | |||
Add to common.css: | |||
<code><pre>code.block { | |||
display: block; | |||
}</pre></code> | |||
(yes, I used pre here, but that's because the CSS change isn't implemented yet except in aan_orig) | |||
--[[User:Luke-Jr|Luke-Jr]] 01:13, 4 November 2005 (CST) | |||
== Duplicate ? == | |||
Duplicate of [[Sty]] ? | |||
[[User:Epsy|Epsy]] 13:33, 4 May 2007 (CDT) | |||
Latest revision as of 14:33, 4 May 2007
it unformats when you copy paste the script -_-
TiTnAsS 16:43, 30 October 2005 (CST)
Put it in code tags, <code>my code</code>
--Lucifer 17:21, 30 October 2005 (CST)
I know, i already tried that, it still unformats, it drops all the indents and puts it into just a couple lines.
TiTnAsS 18:27, 30 October 2005 (CST)
Try using pre tags instead. <pre>my code</pre>
--Lucifer 20:33, 30 October 2005 (CST)
<pre> is evil; it prevents line wrapping, which can easily cause code to scroll horizontally. Can I suggest we make a <code class="block"> for such stuff?
Add to common.css:
code.block {
display: block;
}
(yes, I used pre here, but that's because the CSS change isn't implemented yet except in aan_orig)
--Luke-Jr 01:13, 4 November 2005 (CST)
Duplicate ?
Duplicate of Sty ?
Epsy 13:33, 4 May 2007 (CDT)
