Using a plain-text editor or a code editor is very important.
If you try to write code in a word processor, bad things can happen. For example, many word processors, such as Microsoft Word, like to clean up your writing by changing quote marks (") to curly “smart” quotes [“”]. Your code won’t work!
A plain-text editor (like Notepad, which is built into Windows) lets you write, well – plain text. There are no options to format text with italics, bolding, underlining, or anything fancy. (If you can see those options in the editor you’re using, it’s not plain-text – it’s probably “rich text” instead.)
On the other hand, a code editor is like a plain-text editor, but with a few added features to make it easier to write code. For more tips on using code editors, see our Code Editor section.