megan01 xo Posted August 15, 2006 Share Posted August 15, 2006 I own a website and have dreamweaver and all that. I own a myspace layout website and put up layouts and codes for people to use. I don't know if anyone would know about this but, say I have a myspace layout screen shot on dreamweaver. Then i wanna put a code for it, but i dont wanna put text area. someone told me use a text document but i odnt know how that works. anyone know?please respond. ;megan Link to comment Share on other sites More sharing options...
reportingsjr Posted August 15, 2006 Share Posted August 15, 2006 Just use a div or something, put style="border: 1px;" for a border or whatever and put your code in it.. is this what you want?Also, you will need to replace all > with > and all < with < to get it to show. Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted August 15, 2006 Share Posted August 15, 2006 well a text editor is like notepad... you just see text, no images. Link to comment Share on other sites More sharing options...
reportingsjr Posted August 15, 2006 Share Posted August 15, 2006 He wants to know how to show code on his site so people can copy and paste it.. Link to comment Share on other sites More sharing options...
megan01 xo Posted August 15, 2006 Author Share Posted August 15, 2006 yeah,i kinda wanna do something where it opens a seperate window: \ then it shows code there Link to comment Share on other sites More sharing options...
reportingsjr Posted August 15, 2006 Share Posted August 15, 2006 Ahh, try this:<a href="java script: alert(htmlcode)">View HTML code</a>and in some javascript tages put this: <script type="text/javascript" language="javascript">var htmlcode = "<html>\n<head>\n</head>\n<body>\n</body>\n</html>";</script> Try it out BTW, If you want the code to be on seperate lines you need to use the carriage return (\n), it is the same thing as a <br /> :)EDIT: Whoops! My javascript code had a ug.. fixed it now Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now