HTML files viewed in Safari

I'm sorry if this has been posted before, but I couldn't find it in the search area. But I am in a web design class, and just started taking my Macbook to school. And when I create an HTML document in a text editor and open it in safari, it shows the source code, not the web page. Also, if I create an HTML document on my PC and try to view it in the text editor, it shows up as a web page, with the tables in place, not with the source code of the tables. Is there a way to change it's properties so it will open differently in each application? Any help would be greatly appreciated.

Is it correct that you are talking about TextEdit as your "text editor." If so, then to view the source code of html pages, you need to make sure you check the box in the preferences that says "ignore rich text commands in html." If you don't do that, TextEdit works like a browser.
Also to compose html code, you need to make sure TextEdit is set to Plain Text in the preferences and not Rich Text, and never use the Save As HTML option, which adds an extra layer of html to your code, so that it will not display correctly in a browser.
Another free text editor you can download which many people like is TextWrangler.

Similar Messages

  • Safari 5.0.6 plug-in html file corrupted (now Safari doesn't run)

    Not sure how well I can explain this, as I'm definitely a novice!  Basically, Safari won't run or access certain websites b/c I'm guessing the html file for installed plug-ins is corrupt (Safari won't open the file file:///Applications/Safari.app/Contents/Resources/English.lproj/Plug-ins.html. While trying to open this file, I continuously see the spinning "wheel").  Also, interestingly, I can't open the website listing Safari's extensions gallery for the security options.  Safari will, however, let me access other sites (e.g., Apple Support).
    This all started to happen the DAY after the following:  In the interest of better securing my machine and/or having Safari run less slowly, I'd installed and enabled several RECOMMENDED Safari extensions (e.g., Web of Trust, Dr. WebLink Checker, and Ad Blocker).  I'd also enabled ClicktoFlash and changed several preferences (to accept cookies only from sites I visit; unclicking "Enable Java"). Everything was working BEAUTIFULLY (must faster and, when visiting a site containing videos or banners, I could click FLASH to run Flash for videos/banners requiring it).  Then, just this a.m., I first discovered I couldn't SEE ClicktoFlash and then discovered I couldn't open the plug-ins html file. I couldn't get into Canvas (a learning delivery system) that I desperately need.  I've tried uninstalling the new Safari security extensions mentioned above, clearing Safari's cache and its history, restarting my machine, restarting Safari, and even resetting Safari.  I've also repaired my disc permissions and restarted the machine, restarting Safari, etc. Nothing works to restore the plug-ins html file.
    My husband -- who is very proficient with MACs --  can't figure this out.  He did just install HIS version of Safari (same one for same OS) on my machine and disabled MY version of Safari.  Still having the exact same problem re the plug-ins html file.
    HUGE SIGH and thanks tremendously for recommending a fix!! I'd really rather use Safari than other browsers.
    Tamarajf

    Andy:  BTW, do you have any ideas about WHY the plug-in html file will no longer load in Safari?  As noted in my original query, this is what I'd done about one day before the plug-in file wouldn't load:  " I'd installed and enabled several RECOMMENDED Safari extensions (e.g., Web of Trust, Dr. WebLink Checker, and Ad Blocker).  I'd also enabled ClicktoFlash and changed several preferences (to accept cookies only from sites I visit; unclicking "Enable Java")."  Thanks for any hints you can share! Tamara

  • Same html file viewed locally on laptop appears different from same file uploaded to server why?

    I create an html file locally with CSS style sheets, etc. I view it locally and it looks the way it's intended, when I upload it and view it from a domain on a server, same files look bigger. That includes images, fonts, etc. I've even tried to reset firefox to no avail, but since it's the same file, I'm just viewing it locally and online, there should be no reason for such differences. OS is Vista Home Premium, Mozilla Firefox 3.6.13.

    OK, after two days of googling, I think I might have found my own answer. It seems that resetting zoom DOES NOT overide a user's accidental use of <ctrl>- and <ctrl>+, something that developers might want to check into. I REPEATEDLY tried to reset zoom for the page, which did NOTHING. Finally, after stumbling upon http://forum.joomla.org/viewtopic.php?f=428&t=378606 I used <ctrl>- and then reset zoom, and now the page looks the same locally and online. Since <ctrl> is so close to <shift>, ESPECIALLY onlaptops, it's easy to see how someone could accidentally hit <ctrl>- INSTEAD of <shift>- while typing a URL into the browser window, which will cause this little nightmare I faced. So for the Devs, might want to consider programming reset zoom to also cancel out any <ctrl>- <ctrl>+ settings.

  • PDF files viewed in Safari or downloaded through Safari: Text appears as black and gray boxes

    Hi, a client of ours is having issues viewing PDFs on her home computer. When she views them in browser OR if she saves them through the browser and opens them, she gets the same result. All text (it is an uncommon font being used) shows up as boxes:
    The error is occuring on OSX 10.6.8 using Safari 5.1.10
    The PDF file is being saved out through Word
    Client does not have Adobe Acrobat Pro
    Is there anything that can be done to get this to display properly on Snow Leopard / in Safari?
    Please let me know if you need additional details about the situation, and I'll get them from the client.

    Remove any AdobePDFViewer plugins from /Library/Internet Plug-Ins, restart, and the problem should be gone.

  • Published swf and html file viewing issues.

    Greetings,
    I design web banners and used to, with Flash 8, sedn my
    clients the published *.html and *.swf files to download onto their
    desktops so they could view the banner. With Flash CS3 this doesn't
    seem to be working the same way. It keeps giving them the window
    that says something about "ac_runactivescript.js". How come this
    never did this with Flash 8?

    click file/publish settings/formats, make sure the swf and html boxes are selected, and click the use default names button.  then click file/publish.  are the files in your directory with your fla?
    if not, create a new directory (that has no subdirectories), save your fla to that new directory using a new name (ie, click file/save as).  then click file/publish.  check the new directory for your 3 files.

  • Searching PDF files viewed thru Safari

    I know I can view PDF files in Safari on my 3GS but is there a way to search them without having to download them onto the phone?
    Thanks,
    Scott

    No, as all you have is a viewer of PDF's not something that can interpret content, and create a searchable index.
    And you cannot save to your iPhone in ay case - it cannot store files other than those attached to emails, or those in the Photo library.

  • AppleScript: Add a HTML file in the body of Email by the clipboard

    I would like to insert a HTML file into the body of Email by the clipboard action.
    This is my cord below:
    set the clipboard to (read (choose file) as «class RTF »)
    set theBody to "Hello"
    tell application "Mail"
    activate
      set theMessage to make new outgoing message with properties {content:theBody, visible:true, subject:"mysubject"}
    end tell
    tell application "System Events"
      tell process "Mail"
      set focused of UI element 1 of scroll area 1 of window 1 to true
      keystroke "v" using command down
      end tell
    end tell
    This code enables only rtf file rather than HTML.
    Also I don't want to use the html content by the function of Mail.
    Because if using it, you won't insert both  a html file and body at the same time.
    So what I would like to is to insert a HTML file by the clipboard action into a body.
    Thank you!

    Hi,
    One solution is to use Safari to copy the document:
    set x to choose file -- a HTML file
    tell application "Safari"
        open x
        delay 2
        repeat while source of document 1 does not contain "</html>"
            delay 1.5
        end repeat
        activate
    end tell
    tell application "System Events"
        tell process "Safari"
            set frontmost to true
            keystroke "a" using command down -- select all
            delay 0.3
            keystroke "c" using command down -- copy to clipboard
        end tell
    end tell
    set theBody to "Hello"
    tell application "Mail"
        activate
        set theMessage to make new outgoing message with properties {content:theBody, visible:true, subject:"mysubject"}
    end tell
    tell application "System Events"
        tell process "Mail"
            set focused of UI element 1 of scroll area 1 of window 1 to true
            keystroke "v" using command down
        end tell
    end tell
    Also try this:
    set the clipboard to (read (choose file) as «class HTML») -- a HTML file

  • Saved HTML Files

    Saving an InDesign CS 4 file as html (export to swf) for a web page. When the html files opens in Safari there is a border on the left and the top so the page seems placed wrong to the lower right. I've tried a variety of Page Setup settings including the Above recommended but despite the changes in page sizes there seems to be no getting rid of that left and top border.  Any suggestions?

    There´s another discussion about this subject:
    http://forums.adobe.com/thread/443084

  • View local html files

    Does anyone here know how to view html files which are stored locally on iPhone?
    Thanks

    Unfortunately, iPhone Safari doesn't support the "file://" protocol.
    Not having local storage of web apps was, and is, a big limitation.
    Some companies I contract to, have large business apps written under IE6 on handheld Windows CE devices. The apps are stored on the device. When the iPhone (and Safari Windows) came out, we thought about modifying them to run under Safari. The limitation stopped that idea.

  • How can I edit an html file in Firefox using View Source?

    I have created an html webpage and saved it to my pc. I can't edit the html file in firefox when I right click on the page and select "View Source". I can view the code but I can't edit it. I can do this in IE9.
    I thought I was able to do this before in Firefox.
    Did my settings change somewhere that I can no longer do this?
    Do I have to have something checked in the Web Developer extensions for it to work?
    I'm using Firefox 24.0
    Thank you for any help with this. :)

    The View Source window in Firefox cannot be used to change computer codes. Nor can the Web Developer tools.
    Sorry for any inconvenience.
    I suggest using Programmer's Notepad.

  • DW CS5 - PHP in HTML file - no display in DW live view

    Have DW CS5, Local IIS 7 (Win 7 64x) testing server (Server Model: PHP MySQL) set up and working. External browsers render .html files with PHP fine (URL=http://localhost/testphp.html), DW Live View will not parse/display the PHP with ".html" extension. No ".htaccess" file, DW PHP Tag Library has all PHP "Used In:" boxes checked. Example:
    Example 1
    File name: testphp.php
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    DW Live View and external browser URL: http://localhost/testphp.php:
    Hello There
    Hello World
    Example 2
    File name: testphp.html (same content as above, just filename extension changed)
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    DW Live View:
    Hello There
    external browser URL: http://localhost/testphp.html:
    Hello There
    Hello World
    How to configure DW CS5 to display PHP in DW Live View with file extension= ".html"?
    Thanks in advance, have spent 2 days trying to accomplish!
    Steve

    File name: testphp.php 
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    This is not PHP code
    The red code part should read as to be classified as PHP script
    <?php echo "Hello World"; ?>
    File name: testphp.html (same content as above, just filename extension changed) 
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    Apart from the same mistake as above, this file will not be recognised as containing PHP without the PHP extension. You can setup the server to accept HTML and to interpret same as PHP, but I would not recommend this.
    DW Live View:
    Hello There
    external browser URL: http://localhost/testphp.html:
    Hello There
    This is amazing! With the code above? If you hadn't told me I would not have believed it. I tried it on my humble setup and you are correct. It works using the PHP file but not the HTML file. It doesn't matter, it is still not correct.
    How to configure DW CS5 to display PHP in DW Live View with file extension= ".html"?
    It is not up to DW to determine, it is the PHP server that determines whether PHP in an HTML file will be shown. Have a look here http://php.about.com/od/advancedphp/p/html_php.htm .Once again, I do not recommend this
    I hope this helps.
    Ben

  • How to display local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • How can I import my IE8 bookmarks/favorites into Safari if I only have access to the data stored on my old hard drive? I can't run Windows to export them to an html file.

    My old PC died and I replaced it with a MacBook Pro.  Although I was able to copy the data from the PC's hard drive, I am unable to export my previous bookmarks/favorites to an html file because that PC won't boot.  Is there any other way to import them into Safari using the raw data stored on that drive or convert them somehow to a format I can import?

    You can only use a JSON backup to restore all bookmarks in Firefox.<br />
    If you need to import Firefox bookmarks in Safari then you need to (re)install Firefox and export the bookmarks to an HTML file.
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • Viewing html files in a folder...

    Hi...
    Anyone know how to view html files in a folder(s). What i mean is have them display as thumbnails, etc, so one can identify them visually rather than just by name? Abit like Bridge displays image files and even .psd and .ai files....
    Cheers,
    JJ

    martcol wrote:
    I was interested in this and had a Google around.  It struck me that you can get stand alone file viewers and I thought there must be one for HTML?  I came accross this: http://www.anixsoft.com/htmlview.html
    Absolutely no idea what it might be like but I'm willing to give it a try at the weekend.  Maybe there are others out there?
    Martin
    Googled too... but found nothing interesting... except what seems an old hack from a Microsoft guy who had a registry fix. But the link was very old...
    Anyway, have downloaded the link you gave... thanks... it seems to work as a standalone... almost like an image viewer such as irfan or Xnview...
    Cheers,
    JJ

  • HTML Files in Safari, How do you open?

    How do I open an HTML file in Safari?
    Thanks!

    In Finder, right-click (control-click), Open with...
    In Safari, File > Open File then navigate to where it is.
    If you default browser is Safari then double-clicking in Finder should also work.
    Dave

Maybe you are looking for

  • Reading Multiple Tables with VB

    I'm attempting to retrieve records from multiple tables base on info returned from the previous call. This code fails on the second call to " IF RFC_Read_TableTJ.Call = True" also if I comment out "IF RFC_Read_TableTJ.Call = True" is creates the next

  • How to add hours and min in numbers

    I need to add like 400 times that are in the format of "1:25" for 1 hour and 25 min but i dont now why it wont add it if anyone know please help

  • How to re-activate Photoshop CS2 after my hard drive was replaced

    Help! My hard drive had to be replaced, and now my computer will not allow me to use my Photoshop CS2. I purchased this years ago, and have all of the verification codes. I have several things I am working on that I can't finish until I get it reacti

  • RA-20011: Approximate NDV failed..ORA-06564: object WRR_LPD23678 does not e

    Hi All, Please find below ora error ORA-20011: Approximate NDV failed..ORA-06564: object WRR_LPD23678 does not exist... I got it from the alert log Please let me know ...How to fix this issue... Thanks Pavan L

  • Object and reference accessing for primitives, objects and collections

    Hi, I have questions re objects, primitives and collection accessing and references I made a simple class public class SampleClass {      private String attribute = "default";      public SampleClass()      public SampleClass(SampleClass psampleClass