twix2006
07-12-2003, 01:38 PM
i figured out from another thread that you put <xmp>blah</xmp> to make html codes show up on a page..but when i put it on, the codes are a tiny font..how do i make it bigger and a different font?
|
View Full Version : html codes that show twix2006 07-12-2003, 01:38 PM i figured out from another thread that you put <xmp>blah</xmp> to make html codes show up on a page..but when i put it on, the codes are a tiny font..how do i make it bigger and a different font? burningstars 07-12-2003, 01:44 PM You could try putting it in the CSS Im *not sure* if it will work or not though just try putting something like xmp{ font-size:whatever } and whatever else you want.. twix2006 07-12-2003, 01:49 PM :( nope..didn't work..oh and i want to figure out how to make it so that the stuff between <xmp> and </xmp> won't always start a new line kittycat 07-12-2003, 03:22 PM You could always use this: <a href="link.htm"> So just replace < with < and > with > BugGirl 07-12-2003, 05:30 PM I used the xmp on one page of my site, but when i used another tag with it (i think it was a center tag) it reverted to my standard font. So try using <xmp><font size="whatever"> kicker91 07-12-2003, 08:43 PM Originally posted by kittycat You could always use this: <a href="link.htm"> So just replace < with < and > with > you actually just need to use < for the <. it only uses scripts using < and > together MaGiCSuN 07-12-2003, 10:21 PM Originally posted by BugGirl I used the xmp on one page of my site, but when i used another tag with it (i think it was a center tag) it reverted to my standard font. So try using <xmp><font size="whatever"> using that code will make <font size="whatever"> also show up as normal html, since it is INSIDE the <xmp> coding. try <font size="whatever"><xmp>coding here</xmp></font> if that doesn't work then just use the way kittycat says, then it will show up as part of your normal font sizing Love, Mirna twix2006 07-13-2003, 07:50 AM kittycat..what do you mean by the code u gave me? kittycat 07-13-2003, 01:49 PM Well... a regular HTML code would be like <a href="link.html">, and if you typed that in it would make a link. If you replace the < and > with those codes I put above, the actual code will show up on the page. So when you're writing the code that you want to show up on the page, replace any '<' with '<' and any '>' with '>'. They don't show up here, but if you just to a test one on a page the code will show up just as if you used <xmp>. I don't think a lot of that makes sense lol twix2006 07-13-2003, 04:25 PM oh..but then when i use <xmp> the font's small n really screwed up looking...how can i change that? [the <font-face=verdana size=1...etc> didn't work..it actually messed up my text AFTER that bit..] hm...and <xmp> makes it start a new line everytime..how can i fix that? cuz there are parts on the page where i want to type out like "put this code between < head > and < / head >..etc. heres the page if you guys are kinda confused at what im getting at: http://www31.brinkster.com/twix2006/popup.html plz help!!!!!! MaGiCSuN 07-13-2003, 04:26 PM Originally posted by kittycat you're writing the code that you want to show up on the page, replace any '<' with '<' and any '>' with '>'. They don't show up here, but if you just to a test one on a page the code will show up just as if you used <xmp>. I don't think a lot of that makes sense lol kittycat suggested you a way, i would suggest trying that too without the <xmp> code. love, Mirna twix2006 07-13-2003, 05:26 PM Originally posted by kittycat So when you're writing the code that you want to show up on the page, replace any '<' with '<' and any '>' with '>'. They don't show up here, but if you just to a test one on a page the code will show up just as if you used <xmp>. so wouldn't it turn out just as if i were using <xmp>? but i'll try that..see if there's any difference twix2006 07-13-2003, 05:37 PM this is what i put on my html: ------------------------------------------------------------- ex: first pop up <br><br> <<script language="javascript"> //<!-- function xanga() { window.open ("http://www.xanga.com/home.aspx?user=twix2006","popupX","width=800,height=400,location=1,menubar=1,resizabl e=1,scrollbars=1,status=0,titlebar=1,toolbar=1,lef t=400, top=100") } --> </script>> <<a href="javascript:xanga()">go to my xanga</a>> ------------------------------------------------------------ but then..this is what showed up: ex: first pop up <> <go to my xanga> ------------------------------------------------- did i do something wrong? kittycat 07-13-2003, 06:02 PM From that... it looks like you might not have replaced all of the < and > and just added the extra codes... just an example from the last line, it should look something like: <a href="javascript:xanga()">go to my xanga</a> Note: it won't look exactly like the <xmp> code, it works basically the same but won't have the small font size, it will be the same size as the rest of your text. twix2006 07-13-2003, 06:07 PM oopz..i guess the last line code didn't fully show up...so you're saying just put < and > b4 and after the < and >? cuz thats what i did twix2006 07-13-2003, 06:10 PM wait..nvm..i left out the ; :P twix2006 07-13-2003, 06:24 PM hm.. i put the codes before and after the actual javascript code..but all it did was "delete" the whole code except for <>..or is this code not meant for javascript..? kittycat 07-13-2003, 06:59 PM I'm not entirely sure, but there's a possibility that it isn't. You might just be better off to use a textarea or the <xmp> code for any javascript that you want to show. MaGiCSuN 07-13-2003, 07:26 PM you have to replace < with < and > with > not adding just extra < and > maybe a tip would be: open Word. Type in your code you want to show on your website. then go to Edit > replace (you can also press ctrl + H) fill in "search for" with the "<" sign and fill in "replace with" with the "<" click "replace all" then do the same again for the > sign. After finishing that you copy the whole code and paste it into your website and it should view Love, Mirna twix2006 07-14-2003, 09:50 AM ooooooo. haha...i kno what i did wrong now!! i didn't change ALL the < and > :P..i only did the beginning and end...stupid me.. twix2006 07-14-2003, 10:24 AM it worked :D tnx..can't believe how stupid i was :P |