PDA

View Full Version : [Code] tags


a_priebe47
04-23-2003, 01:00 AM
Could someone provide a code snippet of how I would implement a code tag on my webpage? Thanks in advance.

EscapeCharacter
04-23-2003, 01:23 AM
i dont believe you can do it with straight html since the text has to run through some parser to determine if [code] exists in the code. maybe move this to php or asp?

a_priebe47
04-23-2003, 01:54 AM
Ok, would I have to change the full page to php or is there some kinda of tag like <script-language=php> or something similar?

EscapeCharacter
04-23-2003, 03:07 AM
yeah php uses <?php php?> or just <? ?> also i notice your site is on geocities and i dont know if they allow server side scripts, i doubt it though

a_priebe47
04-23-2003, 06:56 PM
Thanks for your input EscapeCharacter. I may move my site to AngelFire but I may just stick with Geocities. Thanks for your assistance.

EscapeCharacter
04-23-2003, 11:44 PM
i dont know if geocities still allows cgi but you might want to look at that if you dont want to switch. or you could just install apache on your computer and run the website from there

kryptech.net
10-05-2003, 10:55 PM
also I think you can use <script language="PHP"> with PHP

kryptech.net
10-05-2003, 10:57 PM
Originally posted by EscapeCharacter
i dont know if geocities still allows cgi but you might want to look at that if you dont want to switch. or you could just install apache on your computer and run the website from there What if he has a 56 k connection and Apache is very hard to install for the newb and you cant provide near as good service as some of the hosts

Coliver
04-21-2004, 02:44 AM
It's quite easy. But iy takes time.

You will need to type the <> braces manually instead of just posting it.

For example, you want to show:

<html>
<head>
<title>
blahb
</title>
</head>
</html>

Those "/" and "<" will need you to type them manually out with codes. I can't remember them off the top of my head. For example, space is .

That's the way to do it.

iDxMan
04-21-2004, 10:08 AM
Originally posted by Coliver
It's quite easy. But iy takes time.

You will need to type the <> braces manually instead of just posting it.

For example, you want to show:

<html>
<head>
<title>
blahb
</title>
</head>
</html>

Those "/" and "<" will need you to type them manually out with codes. I can't remember them off the top of my head. For example, space is .

That's the way to do it.

That makes absolutely no sense and yet again, its a dead thread. (smells like PW) I believe he was asking how to implement something similar to the [ code ] tags we use on this forum, back on his own webpage. For all intensive purposes, the page content would need to be parsed (php/perl/etc.) to replace the specified tags with something else. ie: a div with a specific class/etc..


-r

Coliver
04-21-2004, 06:55 PM
He can't post that on his source with just those tags.

he can't go <font> <tag> <anothertag></font>

You have to go <Font> ‹tag› 𔈇anothertag› </font>

to fully post those codes first. Then as for the background, you will need to add your own layout to whatever you do it.