With a plain text editor like Notepad or TextEdit you can edit the.htm pages, and.js files. If you want to change font sizes or template colors you can optionally edit the.css files using your plain text editor.
Text Edit, the free text editor on the Mac, saves in Unicode by default, but to ensure that you are saving a Unicode.txt file, do the following: Text Edit saves as RTF (Rich Text) by default and includes formatting and font options. To convert your file to true plain text (.txt), go to the Format menu and select Make Plain Text. If you need a real multifunctional special text editor with text formatting tools etc., you can find a lot of different applications (any Word processor or Text editor) for your special needs. Or you can download and install, for example the free and open-source LibreOffice Writer (for Windows, Mac OS X and Linux). If you need a plain text editor to manage your writings, use open-source Atom or the free limited version of BBedit. If you are an app developer and you need to enhance your code, have a look at open-source Brackets that lets you work in a web environment or commercial UltraEdit that allows you to remotely edit files and process large files. With these four plain text editors on iOS and iPadOS, it won’t matter in which company’s ecosystem you store them. Pretext is a minimal editor that integrates directly with the Files app.
To learn coding, there are two essential things you need. The first is coding training, and the second is a text editor. A text editor is a program that runs on your PC or Mac, which you’ll use to write all of your code. Think of it as like a word processor, but for plain text (no formatting).
Here is the screenshot of a text editor called Sublime Text:
You can also customize the color schemes.
All computers come with text editors built in. If you’re on a PC, then your built-in text editor is Notepad. If you’re on a Mac, there’s no program exclusively designed for writing code. However, you can set up TextEdit to work as a text editor by going into Preferences and selecting the Plain Text radio button.
Simple Text Editor For Mac
Most coders don’t use Notepad and TextEdit though – they prefer to download a more powerful, feature-packed text editor. Here are some popular choices.
Sublime Text
Notepad Plane Text Editor For Mac
Sublime Text is a popular text editor. It’s available for PC, Mac and Linux, has many useful features and is easy on the eye too. Sublime Text is also the text editor used by Treehouse, a training website highly recommended by Code Conquest.
A useful feature of Sublime Text is it has an expandable list of folders and files in a sidebar. This makes it very easy to locate and open up files.
Other Text Editors
There are hundreds of different text editors. Some are well-known, and some are very obscure. In addition to Notepad, TextEdit and Sublime Text, here are some other popular options.
Notepad++
A free and open source code editor for Windows, designed to be a replacement for the limited Notepad.
Adobe Dreamweaver
This text editor is for the purpose of designing and building websites, using HTML and CSS. It’s powerful and well-liked, but it’s costly too.
TextMate
A popular text editor for Mac OS X. Similar to Sublime Text.
Vim
This is a popular text editor among many seasoned coders, but perhaps not the right one for a total beginner.
Why You Need a Text Editor
If you’re working on a coding project, you’ll want to save your code files to your computer. Online editors like Codecademy, Scratchpad.io, jsFiddle and JSBin don’t let you do this.
If you were thinking of using a word processor like Microsoft Word, Pages, Google Docs or Open Office to write your code, don’t. When writing code, you want it to be ‘clean’ and free of any formatting. This just isn’t possible with word processors.
It may seem obvious to you, but some people do try to use programs like these to write their code. Don’t fall into this trap!
What a Text Editor Can Do
Bare-bones text editors like Notepad don’t have much functionality at all – they let you write text and that’s it. It’s almost like writing with pen and paper.
It’s totally fine to use a text editor like Notepad. But if you choose a more powerful text editor, you’ll get extra features that make coding easier for you. Here are just some of the things text editors can do:
- find text and replace it with other text
- highlight syntax (display different types of code in different colors)
- indent lines automatically
- tell you when there’s an error with your code
- open multiple files in tabs
- create and delete files inside folders
- type in multiple places at once (yes, really)
A word of warning to finish up. Some text editors are packed with features to the point where their interfaces can be quite intimidating. You don’t have to use these features, but they’re nice if you do know how to use them.
Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.