How would i do this - URGENT!

Discussion in 'HTML & Website Design' started by willyboy104, Jun 3, 2008.

  1. #1
    Hi guys, i am currently writing a tutorial on how to edit and develop a proxy site and i have copy and pasted some text to put in to my web tutorial. However obviously in dreamweaver the software recognises the text to be code when i want it only to be an example. Is there anyway that i can make dreamweaver recognise the copy and pasted code to not be part of my web page?

    Hope someone understands me :D

    Will.
     
    willyboy104, Jun 3, 2008 IP
  2. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #2
    Plz! clarify i cant recognize clearly ?
     
    jezzz, Jun 3, 2008 IP
  3. Narrator

    Narrator Active Member

    Messages:
    392
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #3
    The easiest way would be to place it in a <textarea>. you can also escape the <'s and >'s with the ascii values &lt; and &gt;
     
    Narrator, Jun 3, 2008 IP
  4. Kuriyaki

    Kuriyaki Peon

    Messages:
    257
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would write the code in Notepad, and simply do Find and Replace < and > with &lt; and &gt; respectively.
     
    Kuriyaki, Jun 3, 2008 IP
  5. willyboy104

    willyboy104 Active Member

    Messages:
    2,852
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    90
    #5
    Thanks for the replies basically i am trying to make a tutorial on how to edit simple coding areas like the meta tags so i am trying to insert this text in to dreamweaver.
    <meta name="description" content="The greatest Proxy Site developed today<?php echo $metadescription; ?>" />
    <meta name="keywords" content="Myspace Proxies, FaceBook Proxies<?php echo $metakeywords; ?>" />

    But obviously dreamweaver will recognise this as a bit of coding which i do not want it too.

    Putting it in <p> does not work,
     
    willyboy104, Jun 3, 2008 IP
  6. Kuriyaki

    Kuriyaki Peon

    Messages:
    257
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It won't. Have you tried what Narrator and I suggested? It will most definitely work.
     
    Kuriyaki, Jun 3, 2008 IP
  7. mrbrantley

    mrbrantley Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    Just post the code in the design view instead of the code view. Posting it in the design view window will escape / unescape all the proper characters making the code show as you wish as opposed to trying to execute it.
     
    mrbrantley, Jun 3, 2008 IP
  8. willyboy104

    willyboy104 Active Member

    Messages:
    2,852
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    90
    #8
    Thanks guys think its worked :D
     
    willyboy104, Jun 3, 2008 IP