Your Ad Here Your Ad Here
Results 1 to 5 of 5

Thread: html script that stops html activity?

  1. #1
    Bebi's Avatar Super Duper Member
    Join Date
    Apr 2003
    Location
    Ireland
    Posts
    676
    there is a html script that kills html so it makes the source code appear instead of the effect of the html... does anybody know it? its a very simple you just type it in and then close it with the "/" when you want


  2. Internet, Programming and Graphics   -   #2
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    24,069
    <!--
    before the text you want 'commented' out and
    -->
    after it.

    In CSS you would use /* before and */ after the text

    In php you can use a few different ways:
    // Before the line of text to be commented (no ending // needed)
    # before the line of text to be commented (no ending # needed)
    /* before the text and */ after it.

  3. Internet, Programming and Graphics   -   #3
    Bebi's Avatar Super Duper Member
    Join Date
    Apr 2003
    Location
    Ireland
    Posts
    676
    doesnt that just hide the html... I mean if you put it infront of the page source code it will display all the html code instead of actually doing what the code is meant to do


  4. Internet, Programming and Graphics   -   #4
    You would have to use the HTML codes for symbols like < and > (&lt; and &gt; respectively)

    Then the code would appear on the page without actually rendering it. Use a program like Nvu to just cut and paste code into the WYSIWYG window and this substitution will be done for you.

  5. Internet, Programming and Graphics   -   #5
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    24,069
    Quote Originally Posted by Bebi
    doesnt that just hide the html... I mean if you put it infront of the page source code it will display all the html code instead of actually doing what the code is meant to do
    Sorry guess I didn't understand what you meant.

    edit: looks like rick phlegm's idea would work like you want.
    Also if you want to keep the spacing/indentation/line breaks that you've put in the code put <pre> tags around the code.
    Last edited by tesco; 09-16-2005 at 04:57 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •