Changing html code in a batch of files?

Discussion in 'AdSense' started by darkbreed, Nov 8, 2006.

  1. #1
    Anyone know how/if I can change code that is same for several files at once, instead of manually opening and editing the files one by one? I have around 100 files that I need to change the ad codes for and its one heck of a job to do one and one file :/
     
    darkbreed, Nov 8, 2006 IP
  2. BILZ

    BILZ Peon

    Messages:
    1,515
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Im not sure how to edit them all at once. But, when you go back to edit each one this time, i would code in there for an include so next time you can change all of them at once.
     
    BILZ, Nov 8, 2006 IP
  3. BrianR2

    BrianR2 Guest

    Messages:
    734
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can do a multiple file or site find and replace with Dreamweaver or Homesite. There are probably other programs that do that as well but I use these ones. The best thing to do to make this easier in the future is to use include files where ever the code is the same so that you can just change the one include file and have the changes reflect in all the files that include that file.
     
    BrianR2, Nov 8, 2006 IP
  4. SamOwen

    SamOwen Peon

    Messages:
    865
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Very good idea.

    Use Crimson Editor (free) or DreamWeaver. Open all your files in it and use the find and replace function. I prefer DreamWeaver's find and replace function.
     
    SamOwen, Nov 8, 2006 IP
  5. darkbreed

    darkbreed Peon

    Messages:
    316
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the tips I will try them out. I use dreamweaver. Unfortunately my webdesign skill sucks lol, and i know nothing about html coding.. Whats this "include" thing you talk about?
     
    darkbreed, Nov 8, 2006 IP
  6. The_FoX

    The_FoX Peon

    Messages:
    666
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #6
    U can also use the HTML Batch Editor software - i guess the freeware versions are available online. let me know if u didnt nfd one.
     
    The_FoX, Nov 8, 2006 IP
  7. BrianR2

    BrianR2 Guest

    Messages:
    734
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think this article provides a pretty simple explanation of using server-side includes (SSI): http://www.smartwebby.com/web_site_design/server_side_includes.asp
     
    BrianR2, Nov 8, 2006 IP