how can i have a piece of html code on the server and have it appear on a page

Discussion in 'HTML & Website Design' started by cj1223, Jun 9, 2012.

  1. #1
    Basically what im trying to do is have some code for social bookmarking in a text file and then place a code on the page were i want it to appear. I believe this is possible right?
     
    cj1223, Jun 9, 2012 IP
  2. pupul

    pupul Prominent Member

    Messages:
    1,737
    Likes Received:
    66
    Best Answers:
    2
    Trophy Points:
    340
    #2
    I think you want to show the code in a webpage.
     
    pupul, Jun 9, 2012 IP
  3. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    the code takes a bit to load and i heard this will be faster. plus im having trouble with my web builder (NVU) which is removing emty <a> tags in this perticular code. the code is for add this social networking buttons.
     
    cj1223, Jun 9, 2012 IP
  4. sash_007

    sash_007 Well-Known Member

    Messages:
    174
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    125
    #4
    can u post ur code here?
     
    sash_007, Jun 9, 2012 IP
  5. D3rek

    D3rek Well-Known Member

    Messages:
    1,345
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    100
    #5
    You can use

    1) <pre> tag </pre>
    2) You can put it inside <textarea>

    hope it helps.
     
    D3rek, Jun 10, 2012 IP
  6. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #6
    What's <pre> do?
     
    cj1223, Jun 10, 2012 IP
  7. Rankx

    Rankx Active Member

    Messages:
    119
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    50
    #7
    <pre> tags are used to display exactly what is placed inside them. It is for formatting. So if you were to put <pre> I went to the zoo.</pre>, you would get that exact result in the browser with all the spaces that you placed. So I should also be able to work with code as well.
     
    Rankx, Jun 10, 2012 IP
  8. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #8
    So hopefully if I put the code in the <pre> NVU will leave it as is and won't remove the empty <a> tags. Il try it.
     
    cj1223, Jun 10, 2012 IP
  9. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #9
    Well that didn't work. I just want to either fix NVU slit will leave my code as is. Or put this code separate n ther server and link to it some how on every web page. I read some were before that was possible.
     
    cj1223, Jun 10, 2012 IP