Let me zoom in a bit so you can see what I'm doing. So let's start off by doing our favorite program, Hello World. If you're on a PC and you're using Notepad, you don't have to worry about this. ![]() Now that formatting bar is no longer here. We can close our Preferences pane, and let's restart TextEdit to make sure that our changes are still present. Also, make sure you uncheck all of the options down below. ![]() To change it, we're going to go over to TextEdit, choose Preferences, and then we're going to choose plain text under the Format section. But this is not suitable for writing source code. That means you can do things like bold or italics, or even underline. By default, TextEdit stores files in Rich Text Format. We're going to go ahead and open up TextEdit, and the first thing that you'll notice is this formatting bar. I'll be using TextEdit since I'm on a Mac. Both applications allow you to write source code. If you're on a PC, you already have a text editor available to you. ![]() ![]() This means that word processing applications aren't suitable for writing code, because by default, they insert bits of information in files that prevent them from being plain text. In other words, we write it without special formatting, like bold, italic, or different font types. It's the instructions we have for the computer, and it's written in plain text. Writing source code is what programmers do all day.
0 Comments
Leave a Reply. |