Highlighting HTML Source Code Including Checkbox

Discussion in 'PHP' started by SNaRe, Jun 8, 2008.

  1. #1
    I'm looking for a script that will highlight a website's source code with checkboxed per between tags.
    It's hard to explain you must see it
    Here is a example

    http://www.youtubekaydet.com/test.htm
     
    SNaRe, Jun 8, 2008 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    $file = file($file);
    foreach($file as $f)
    {
      echo 'checkbox code here' . highlight_string($f);
    }
    
    PHP:
    Just one method. You could use the highlight functions at different times in different ways, but this is the gist.
     
    Danltn, Jun 8, 2008 IP
  3. SNaRe

    SNaRe Well-Known Member

    Messages:
    1,132
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    165
    #3
    I meant different thing. If you check the url that i wrote above.
    It groups tags between per them like
    for example
    <div id="asd"></div>
    It groups everything between this tags
     
    SNaRe, Jun 8, 2008 IP