Everything2
Near Matches
Ignore Exact
Full Text
Everything2

node code

created by ariels

(idea) by ariels (5.3 d) (print)   ?   I like it! Thu Jan 18 2001 at 12:29:35

To node code, here's what I do:
<blockquote>
<pre>
[... my code goes here ...]
</pre>
</blockquote>

The <pre> tag ("preformatted text") puts it in a monospaced font and respects my whitespace, which is important for line breaks and indentation. The <blockquote> tag pushes the whole thing in from the margins a bit, and just looks a lot nicer.

You can see the effect on the HTML code above.








The Node Code


(idea) by Jolter (3.5 mon) (print)   ?   I like it! Thu Jan 18 2001 at 13:17:18

If you are going to put your code inline in a paragraph of text, you may want to use the <CODE> tag, which is often interpreted by browsers in much the same way as <PRE>. The <PRE> tag will put the enclosed text in its own paragraph, but <CODE> won't. The end result will be something like this.

See also best viewed with any browser.


printable version
chaos

Best viewed with any browser geek code Why do Americans say "erbs" instead of "herbs"? Microsoft Pledge on HTML Standards
code block &lt;PRE&gt; Nuclear launch codes code
E2 Offline Scratchpad The Lord's Prayer: binary Songs on the Simpsons (Season 3) E2 Crossovers
The CIA wants YOU! HTML Which Springer-Verlag Graduate Text in Mathematics are you? HOT DAMN 2! When Ohio's a rockin' don't come a knockin'
lynx Great Depression monospace It has been claimed that some or all of this article or section is incoherent and not understandable, and should possibly be reworded if the intended meaning can be determined
History of porn (c.1840 to 1930) Everything Purity Test Node for the Ages Words of advice for young noders
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Little presents from the Node Fairy:
enlightened state of consumer ecstasy
The erotic tales of 'old McMurty': that weird kid's favourite dead dog
The Statistics Project
Who puts what where?
Lateral Inhibition
neutron
Nigerian mail scams
g-spot
surface area to volume ratio
Trench warfare
Arlington National Cemetery
Freedom Tunnel
mayonnaise
New Writeups
Ouzo
Goodwill Hunting, Thrift Store(ies)(log)
Pandeism Fish
How conatus compels divine ketosis through a radical kenosis(essay)
cryforhelp
Major dictionaries of the world(review)
Glowing Fish
The Uncanny X-Men and the New Teen Titans(thing)
WolfKeeper
Launch loop(idea)
TendoKing
Katana(person)
Wuukiee
Highly ornamental cultivars of brambles still have as many thorns as their wild counterparts(idea)
TheDeadGuy
Editor Log: May 2008(log)
everyday j.Lo
pray do not molest them(thing)
ammie
Bands Who Take Their Names from Eighteenth-century English Poetry and Prose(idea)
shaogo
Under My Thumb(review)
ammie
Rock On(person)
The Custodian
The Dresden Files(thing)
Ouzo
PETA becomes you, a proposed future(fiction)
Ereneta
Stone Soup, Part Two(fiction)
E2 is a by-product of the existence of The Everything Development Company