SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Searching Code

  1. #1
    SitePoint Guru
    Join Date
    Jan 2010
    Posts
    635
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Searching Code

    Sitepoint Members,
    Isn't there a way to search your code? Google says I have "....html/" on my site but I can't find it.

    Thanks,

    Chris

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,197
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Where does it say you have it? Or on what page? Perhaps you have removed it since Google saw it.

  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2011
    Location
    London UK
    Posts
    495
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Your question is not very clear, but if you mean how to find a specific string, you can open your file in a wordprocessor and do a search.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,197
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    You can also view the source code of your page and hit Command + F (Mac ... prolly Control + F on PC) and find the code that way.

  5. #5
    SitePoint Guru
    Join Date
    Jan 2010
    Posts
    635
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I guess I left out something. My site has too many pages to go through it one by one with view source. So I was hoping there's a way to scan all the code of all my pages at one time. Sorry for leaving that out.

  6. #6
    SitePoint Mentor silver trophybronze trophy
    Mikl's Avatar
    Join Date
    Dec 2011
    Location
    Edinburgh, Scotland
    Posts
    1,559
    Mentioned
    63 Post(s)
    Tagged
    0 Thread(s)
    You can use your operating system's Search feature to find which file contains the string in question. If you are using Windows, for example, right-click on the folder in Explorer, and select Search.

    Once you've narrowed it down to one or more files, open those files in a text editor, and use its Find feature to locate the specific string.

    Mike

  7. #7
    SitePoint Guru
    Join Date
    Jan 2010
    Posts
    635
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That worked great. I keep backups on my compurer so all I had to do was search the latest backup. I've used that function so many times but forgot about the "browse" choice at the bottom in the drop-down under "Look in:" in order to searcha specific files or folder.

    Thanks Mikl


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
  •