Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

mac notepad for rewriting html

Jun 10, 2006 1:01AM PDT

I am trying to use the text editor in my mac to rewrite some html I found off of the internet, Could anyone tell me why the saved source files (as text) do not open back up as text and how I can view changes I have made to a source file (copy of a source file)?

Discussion is locked

- Collapse -
Strange
Jun 10, 2006 2:06AM PDT

HTML files saved as .txt normally open as text files when double clicked, UNLESS, you have suggested to the system that it should use Safari or some other browser.
Get Info on the files you have saved with a .txt extension and make sure that the default program to open them is TextEdit.
Repeat for the files you saved with .htm extensions and check for your browser

To check how you did without saving the file as HTML, right click (Apple + Click) the file and choose Open With and pick the browser.

P

- Collapse -
(Apple +Click)
Jun 10, 2006 6:32AM PDT

I know this is rudimentary..But I save as html sraight from the TextEditor but when double clicking or apple+clicking the file, the browser brings up a page of text, which is the source file. txt's equivalent. I am tying to edit a webpage and see the changes to the file as I go along. I know there are editing programs, but I am bypassing most of them on purpose. I am going to try Bluefish, though if I can find out hoe to download and install it correctly. I think it runs in a Linux environment (which means prerequisite downloads). I am not too sure about this yet. Try Bluefish.com for reference.

But more importantly, how do I see the html anew each time with my changes formthe TextEditor? (Apple+click) does nothing different from double clicking.

- Collapse -
I meant Control + Click
Jun 10, 2006 9:14AM PDT

If you view as source, select all, copy and then paste into text edit and save as .rtf, it will open with Texteditor as text.

Save a copy, change the extension to .htm and control + Click and it will open in Safari.

Check out http://tacosw.com/main.php rather than having to mess with a Linux type installation that requires tweaking all the time. The price is the same

P