Jump to content

User:Chzz/help/code

From Wikipedia, the free encyclopedia
You can just start a line with a space, like this one, or
<pre>
You can, if you want, put things in-between a <pre> and a </pre> like this. This is useful for longer texts. Erm. The quick brown fox jumps over the lazy dog, etc.
</pre>

 Chzz  ►  20:14, 3 September 2010 (UTC)

Oh, and I'm sure you'll notice, the above do not wrap; there are various ways to deal with that. This, here, is using a 'div' of my own devising, which I added by putting {{subst:user:chzz/n}} to add the beginning <div> thingy (ie to subst in the code on the page User:Chzz/n), and not forgetting to put a </div> at the end of it.

Erm. That sounds a bit complicated; what I actually mean is, I'd literally put this on the page;

{{subst:user:chzz/n}}

Content here

</div>

Another option is to use {{TextBox|Put the content here}}. Some sample text follows; Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

There's loads of those types of things; see Category:Typing-aid templates.  Chzz  ►  20:40, 3 September 2010 (UTC)

Oh - one more option - if you want a scrollbox.

For this, I've used <pre style="overflow: auto;"> at the beginning. So, it'll put scrollbars on the box itself, to cope with overflowing lines.

You need a </pre> at the end of it.

If you want to experiment with this sort of thing, I suggest you create a test page for yourself - e.g. User:Aaplrox/test - click that red link to make the page, and feel free to experiment on it.

Also, you can always speak to helpers live, with this thing. Best,  Chzz  ►  20:45, 3 September 2010 (UTC)