Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - code appears on page

 
Thread Tools Search this Thread
Old 11-04-2004, 10:49 AM   #1
Default code appears on page


Hi, I want to write some code so others can see it on my page. How can
this be done? Many thanks in advance!


King of Red Lions
  Reply With Quote
Old 11-04-2004, 10:53 AM   #2
brucie
 
Posts: n/a
Default Re: code appears on page

In alt.html King of Red Lions said:

> Hi, I want to write some code so others can see it on my page.



change your '<' to: &lt; and your '>' to &gt;

<code title="markup sample">
&lt;h1&gt;a heading&lt;/h1&gt;<br>
&lt;p&gt;a paragraph&lt;/p&gt;
</code>


--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-04-2004, 10:59 AM   #3
rf
 
Posts: n/a
Default Re: code appears on page

King of Red Lions

> Hi, I want to write some code so others can see it on my page. How can
> this be done? Many thanks in advance!


Er,

&lt;p&gt; this is a paragraph &lt;/p&gt;

--
Cheers
Richard.


  Reply With Quote
Old 11-04-2004, 11:21 AM   #4
brucie
 
Posts: n/a
Default Re: code appears on page

In alt.html Spartanicus said:

>>change your '<' to: &lt; and your '>' to &gt;


> Changing < to &lt; suffices.


untidy

--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-04-2004, 11:21 AM   #5
Spartanicus
 
Posts: n/a
Default Re: code appears on page

brucie <****@usenetshit.info> wrote:

>> Hi, I want to write some code so others can see it on my page.

>
>change your '<' to: &lt; and your '>' to &gt;


Changing < to &lt; suffices.

--
Spartanicus
  Reply With Quote
Old 11-04-2004, 11:37 AM   #6
Spartanicus
 
Posts: n/a
Default Re: code appears on page

brucie <****@usenetshit.info> wrote:

>>>change your '<' to: &lt; and your '>' to &gt;

>
>> Changing < to &lt; suffices.

>
>untidy


I agree, tidy sucks. Better to untidy code and format code manually.

--
Spartanicus
  Reply With Quote
Old 11-04-2004, 11:43 AM   #7
Jim Higson
 
Posts: n/a
Default Re: code appears on page

King of Red Lions wrote:

> Hi, I want to write some code so others can see it on my page. How can
> this be done? Many thanks in advance!


You might want to check out GNU Source-highlight, which can convert your
code to syntax-highlighted (X)HTML.

(Actually, the HTML it generates is pretty bloated, but I'll handwave that
for now)
  Reply With Quote
Old 11-05-2004, 12:14 AM   #8
Jukka K. Korpela
 
Posts: n/a
Default Re: code appears on page

King of Red Lions <> wrote:

> Hi, I want to write some code so others can see it on my page.


Stop wanting that.

> How can this be done?


Since you had to ask, you are surely not qualified to teach others how to
write HTML, so why would you "write some code" etc.? (You surely meant
HTML code. If you had meant e.g. programming language code, you would
have understood you need to specify that, and the language.)

> Many thanks in advance!


You're welcome. I can't help you with the real problem, though, since you
didn't describe it.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump