I wrote all of my web site’s code using SimpleText in MacOS 9. Recently I made the step up to OS X and I’ve transferred all of my data from my old G-4 to the new system. When I open the html pages in TextEdit on OS X I am unable to go in and edit the code. Instead I get a screen that reads the the html and presents a page like one would see on the web. Is it possible to edit the html that was written in SimpleText and still keep it as a text file?
There are a couple of ways you can address this problem. First off, in Mac OS X, files with “.html” filename suffixes are automatically associated with Safari, the Web browser, so if you double click on them, you don’t get to an editor at all.
To open a file in your editor, Control-Click on the file’s icon. You’ll see:
You can see here that, oddly enough, I have three different versions of TextEdit on my own computer running Mac OS X Tiger 10.4.2. Weird!
Anyway, that’s the general technique you can use to open any file in Mac OS X with any of the set of applications that are known to handle that particular file type.
To permanently change all “.html” files to open with TextEdit, instead of choosing “Open With…” you should choose “Get Info…” which reveals the following:
Notice the “Open with” area in the Get Info window. As you can see, the default is to open this file — and all files with this matching filename extension — with Safari. You can change that by selecting another application from the pop-up menu, then clicking Change All….
Now, on to the specifics of your question. You ask why it is when you open up an HTML file that TextEdit shows you the formatted text rather than the actual HTML source. Great question!
Here’s what I see when I open a simple HTML file:
Not good. To fix this we’re going to have to change the Preferences, then quit and re-open the file. Fortunately, we’ll only have to do this once on your Mac. Go to TextEdit –> Preferences… and choose “Open and Save”. You’ll see:
The key is the first option under “When opening a file”: you want to check Ignore rich text commands in HTML files. Check that option, then quit TextEdit.
Now, open up the HTML file again, and here’s what you’ll see:
Much, much better.
It turns out you can also do this by manually selecting File –> Open…, choosing the file, and also selecting the option in the Open dialog window of “Ignore rich text commands”, but since i’m always double-clicking on files or otherwise launching TextEdit, it’s a much easier solution to simply fix the preferences and never worry about it again.
Kind of a pain, but that’s your solution path. Good luck with your editing!
Let’s Stay In Touch!
Best Value: Komodo Edit
What We Like
- Lots of add-ons available.
- Built-in FTP client.
- Auto-complete and syntax checking features.
What We Don't Like
- Slow to load.
- Feels cluttered. Read text cache file chrome for mac.
- Difficult to install color schemes.
Best for JavaScript Developers: Aptana Studio
What We Like
- Integrated debugger.
- Build-in Code Assist feature for tags.
- Built-in terminal emulator.
What We Don't Like
- No longer in development.
- Minimal support for PHP.
- Some dependencies.
A Full Featured Java IDE: NetBeans
What We Like
- Version 9.0 released by Apache after acquisition.
- Supports the Jigsaw Module system.
- Supports Java Shell, new in JDK 9.
What We Don't Like
- Needs high-memory computer to run quickly.
- Not many plug-ins.
- Auto-completion is buggy.
Best for LAMP Developers: Bluefish
What We Like
- Auto-completion and auto-tag closing.
- Powerful search and replace.
- Quick to start and load files.
What We Don't Like
- Not for novice programmers.
- User interface looks intimidating.
- Too many tabs and toolbars.
A Powerful Multi-Language IDE: Eclipse
What We Like
- Robust debugging and profiling profile.
- Code-completion feature.
- Fast deployment and implementation.
What We Don't Like
- Slow when working with large files.
- Not recommended for large businesses.
- Steep learning curve for novice programmers.
Mac Text Editor For Python
A Swiss Army Knife IDE from Mozilla: SeaMonkey
Mac Text Editor For Coding
What We Like
- Tabs for WISIWYG editing, HTML tags, HTML code, and browser views.
- Suitable for building simple, basic websites.
![Editor Editor](/uploads/1/3/3/8/133893461/588230004.png)
What We Don't Like
- Composer element no longer being maintained.
- Generates HTML 4.01 Transitional code.
A Basic HTML Writer: Amaya
What We Like
- Useful for up to HTML 4.01.
- Supports SVG and MathML.
What We Don't Like
- Last updated in 2012.
- No longer in development.
Straightforward and Stable: BBEdit 12
What We Like
- Supports HTML5.
- Opens large files. https://parpowerup.weebly.com/m1-vst-free-download.html.
- Great customer support.
- Rock-solid software.
What We Don't Like
- Advanced features require paid version after 30-day free trial.
- Must search menus for features and options.