Talk:Code hacks

From Armagetron
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)