How to Use Notepad++
This wikiHow teaches you how to install and use Notepad++ on your Windows computer. Notepad++ is a text editor that is optimized for programming languages, making it ideal for coding in languages like C++, Batch, and HTML. Open the...
Part 1 of 5:
Installing
-
Picture 1 of How to Use Notepad++ Open the Notepad++ website. Go to https://notepad-plus-plus.org/ in your browser. -
Picture 2 of How to Use Notepad++ Click download. This tab is on the upper-left side of the page. -
Picture 3 of How to Use Notepad++ Click DOWNLOAD. It's a green button in the middle of the page. The Notepad++ installer will begin downloading.- Depending on your browser settings, you may have to select a save location or confirm the download before continuing.
-
Picture 4 of How to Use Notepad++ Double-click the setup file. It resembles a green frog. -
Picture 5 of How to Use Notepad++ Click Yes when prompted. The installation window will open. -
Picture 6 of How to Use Notepad++ Select a language. Click the language drop-down box, then click the language that you want to use. -
Picture 7 of How to Use Notepad++ Click OK. It's at the bottom of the Language window. -
Picture 8 of How to Use Notepad++ Follow the on-screen prompts. Do the following:- Click Next
- Click I Agree
- Click Next
- Click Next
- Check advanced options, then click Install
-
Picture 9 of How to Use Notepad++ Click Finish. As long as you leave the "Run Notepad++" option checked, doing so will both close the installation window and open Notepad++.
Part 2 of 5:
Setting up Notepad++
-
Picture 10 of How to Use Notepad++ Open Notepad++ if it isn't open. Double-click the Notepad++ app icon, which resembles a white pad with a green frog on it. -
Picture 11 of How to Use Notepad++ Delete any text currently in Notepad++. You'll usually see some developer notes here, so just highlight and delete them. -
Picture 12 of How to Use Notepad++ Click Settings. This tab is at the top of the Notepad++ window. Clicking it prompts a drop-down menu. -
Picture 13 of How to Use Notepad++ Click Preferences…. It's in the Settings drop-down menu. Doing so opens the Preferences window. -
Picture 14 of How to Use Notepad++ Review your Notepad++ settings. Look over the settings in the middle of the window, or click a tab on the left side of the Preferences window to change the category of settings that you're viewing.- You can change these settings to your liking, but be careful not to change anything that you don't understand.
-
Picture 15 of How to Use Notepad++ Click Close. It's at the bottom of the Preferences window. Doing so saves any changes and closes the window. -
Picture 16 of How to Use Notepad++ Review the menu buttons. Near the top of the Notepad++ window, you'll see a row of colored buttons. Hovering your mouse over each of the buttons will show you what each button does.- For example, the purple floppy disk-shaped icon in the upper-left side of the window saves your progress on a project when clicked.
-
Picture 17 of How to Use Notepad++ Decide on a language. This article covers examples for C++, Batch, and HTML coding, but you can use almost any language that you want to with Notepad++. Once you have a language picked out, you can proceed with actually using Notepad++ to create a program.
Part 3 of 5:
Creating a Simple C++ Program
-
Picture 18 of How to Use Notepad++ Click the Language tab. It's at the top of the window. Clicking it prompts a drop-down menu. -
Picture 19 of How to Use Notepad++ Select C. You'll find this option in the Language drop-down menu. A pop-out menu will appear. -
Picture 20 of How to Use Notepad++ Click C++. It's in the pop-out menu. Most programmers' first experiences with C++ involve creating a program that says "Hello, World!" when run, so that's what you'll do here.[1] -
Picture 21 of How to Use Notepad++ Add a title to your program. Type in//
followed by your program's title (e.g., "My first program"), then press ↵ Enter.- Any text in a line that's typed after two slash marks won't be read as code.
- For example: to entitle your program "Hi Earth", you'd type
//Hi Earth
into Notepad++.
-
Picture 22 of How to Use Notepad++ Enter the preprocessor command. Type#include
into Notepad++, then press ↵ Enter. This command instructs C++ to run the following lines of code as a program. -
Picture 23 of How to Use Notepad++ Declare the program's function. Typeint main ()
into Notepad++, then press ↵ Enter. -
Picture 24 of How to Use Notepad++ Add an open bracket. Type{
into Notepad++, then press ↵ Enter. Your program's main code will go between this open bracket and a closed bracket later. -
Picture 25 of How to Use Notepad++ Enter your program's execution code. Typestd::cout << "Hello World!";
into Notepad++ and press ↵ Enter. -
Picture 26 of How to Use Notepad++ Add a closed bracket. Type}
into Notepad++. This closes the program's execution phase. -
Picture 27 of How to Use Notepad++ Review your program. It should look something like this://Hi Earth
#include
int main ()
{
std::cout << "Hello World!";
}
-
Picture 28 of How to Use Notepad++ Save your program. Click File, then click Save As... in the drop-down menu, enter a name for your program, select a save location, and click Save.- If you have a program on your computer that can run C++, you should be able to open your Hello World program in it.
Part 4 of 5:
Creating a Simple Batch Program
-
Picture 29 of How to Use Notepad++ Click the Language tab. It's at the top of the window. Clicking it prompts a drop-down menu. -
Picture 30 of How to Use Notepad++ Select B. You'll find this option in the Language drop-down menu. A pop-out menu will appear. -
Picture 31 of How to Use Notepad++ Click Batch. It's in the pop-out menu. Batch is a modified version of the commands that you use in Command Prompt, so any Batch file will open in Command Prompt.[2] -
Picture 32 of How to Use Notepad++ Enter the "echo" command. Type@echo off
into Notepad++ and press ↵ Enter. -
Picture 33 of How to Use Notepad++ Add a title for your program. Type inTitle text
and press ↵ Enter, making sure to replace "text" with your preferred title.- When you run the program, the title text is what will display at the top of the Command Prompt window.
-
Picture 34 of How to Use Notepad++ Enter display text. Type inecho text
and press ↵ Enter. Replace "text" with whatever you want Command Prompt to display.- For example, if you want Command Prompt to say "Humans are superior!", you'd type
echo Humans are superior!
into Notepad++.
- For example, if you want Command Prompt to say "Humans are superior!", you'd type
-
Picture 35 of How to Use Notepad++ Halt the program. Typepause
into Notepad++ to indicate the end of the program. -
Picture 36 of How to Use Notepad++ Review your code. It should look something like this:@echo off
Title Improved Command Prompt
echo Humans are superior!
pause
-
Picture 37 of How to Use Notepad++ Save your program. Click File, then click Save As... in the drop-down menu, enter a name for your program, select a save location, and click Save.- If you want to run your program, simply find it in its save location and double-click it to do so.
Part 5 of 5:
Creating a Simple HTML Program
-
Picture 38 of How to Use Notepad++ Click the Language tab. It's at the top of the window. Clicking it prompts a drop-down menu. -
Picture 39 of How to Use Notepad++ Select H. You'll find this option in the Language drop-down menu. A pop-out menu will appear. -
Picture 40 of How to Use Notepad++ Click HTML. It's in the pop-out menu. HTML is commonly used for website pages, so you'll be creating a basic webpage heading and subheading.[3] -
Picture 41 of How to Use Notepad++ Enter your document header. Typeinto Notepad++, then press ↵ Enter.
-
Picture 42 of How to Use Notepad++ Add the "html" tag. Typeinto Notepad++ and press ↵ Enter.
-
Picture 43 of How to Use Notepad++ Add the "body" tag. Typeinto Notepad++ and press ↵ Enter. This indicates that you'll be entering a section of text or other body information.
-
Picture 44 of How to Use Notepad++ Enter your page's heading. Type intext
and press ↵ Enter, making sure to replace the "text" section with your preferred page heading.- For example: to set your heading as "Welcome to my Swamp", you would type
Welcome to my Swamp
into Notepad++.
- For example: to set your heading as "Welcome to my Swamp", you would type
-
Picture 45 of How to Use Notepad++ Add text below the heading. Type intext
and press ↵ Enter. You'll replace "text" with your preferred text (e.g., "Make yourself right at home!"). -
Picture 46 of How to Use Notepad++ Close the "html" and "body" tags. Type inand press ↵ Enter, then type in
.
-
Picture 47 of How to Use Notepad++ Review your code. It should look like this:-
Welcome to my Swamp
-
Make yourself right at home!
-
Picture 48 of How to Use Notepad++ Save your program. Click File, then click Save As... in the drop-down menu, enter a name for your program, select a save location, and click Save.- As long as you select your language before saving, Notepad++ will choose the correct file format for you.
- You should be able to open your HTML file in any web browser.
Update 05 March 2020
You should read it
- How to Make a Program Using Notepad
- Reset Notepad to the initial default setting state
- What is Notepad ++? Compare Notepad ++ and regular Notepad
- These 'hack' tips are only Notepad can do
- How to quickly open the data file with the Notepad editor
- How to activate and experience the new interface of Notepad in Windows 11
- Summary of useful shortcuts when using Notepad
- Steps to find and replace text in Notepad on Windows 10
- How to End a Program on a PC
- Tips to set an encryption password for NotePad files
- Why is Notepad still a great note taking application?
- How to Open Notepad
Maybe you are interested
Each person's eye color is different from anyone else's, why is that? The easiest way to Use Macros in Excel What is Miracast Connect? On which device? Instructions on how to use Miracast Top 10 best anime movies 2020 - 2021 Hackers are taking advantage of the Store to distribute malware Clean your oven without harsh chemicals