SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dreamweaver find and replace

    I have used the dreamweaver find and replace option to change

    <html>

    into

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>

    Strange thing is i get a Black square between <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    and <html>

    Also the whole thing appears on one line -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">(black sqare)<html>

    Rather than the way i tryed to replace it.

    In dreamweaver view code everything looks fine, its only when viewing in notepad that it appears on one line with the black square.

    Does anyone know why this is happening?
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Dreamweaver is...well let's say liberal when it comes to formatting whitespace in your code as you previously saved it. When you do your find/replace just put your <html> tag right next to your <!DOCTYPE> declaration. Whitespace is irrelevant anyway, but just know that it may be an issue/bug with the way newline characters are parsed in DW.

    --Vinnie

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Are you sure

    Are you sure whitespace is irrelevant?

    I am worried that -

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>

    May confuse for search engine spiders.

    Should it not be -

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Are you sure

    Originally posted by TimNiceButDim
    Are you sure whitespace is irrelevant?

    I am worried that -

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>

    May confuse for search engine spiders.

    Should it not be -

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    I agree with you; I'm just giving you a way to work around it using DW. It's quite a pain because it reformats your whitespace. My only other suggestion would be to copy/paste using another editor like HTML-Kit or Notepad.

    --Vinnie


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
  •