This article will show you how to install and use Notepad ++ on a Windows computer. Notepad ++ is a text editor optimized for programming languages, making it ideal for writing code in languages such as C ++, Batch, and HTML.
Steps
Part 1 of 5: Install the program

Step 1. Open the Notepad ++ website in a browser
Go to

Step 2. Click on Current Version X. X. X
(The current version is X.
Х. Х) on the left side of the page.

Step 3. Click on the green Download button in the middle of the page to download the Notepad ++ installation file
Depending on your browser settings, you may need to select a save destination or confirm the download

Step 4. Double click on the installation file with a green frog on its icon

Step 5. When prompted, click Yes to proceed to the installation window

Step 6. Select a language
Expand the list of languages and then select the one you want to use.

Step 7. Click OK at the bottom of the language selection window

Step 8. Follow the instructions on the screen with the following steps
-
Click on Further.
-
Click on I accept.
-
Click on Further.
- Select additional components to install.
-
Click on Furtherand then press Install.
Use Notepad ++ Step 9 Step 9. Click Finish
Leave the Run Notepad ++ check box selected to open the program after the installation window closes.
Part 2 of 5: Customize Notepad ++
Use Notepad ++ Step 10 Step 1. Launch Notepad ++ if it is not already open
Double click on the Notepad ++ icon, which looks like a green and white notepad.
Use Notepad ++ Step 11 Step 2. Delete any text in the Notepad ++ window that appears
These will most likely be developer notes, so just highlight and delete them.
Use Notepad ++ Step 12 Step 3. Open the Options menu at the top of the window to display the drop-down list
Use Notepad ++ Step 13 Step 4. Select the Settings item from the drop-down menu to go to the settings window
Use Notepad ++ Step 14 Step 5. Examine the Notepad ++ settings
Review the settings in the center of the window, or click on one of the tabs on the left to change the settings category.
Change the settings as you see fit, but leave alone those parameters whose purpose you do not know
Use Notepad ++ Step 15 Step 6. Click Close at the bottom of the preferences window to save any changes and close the window
Use Notepad ++ Step 16 Step 7. Examine the menu buttons
At the top of the Notepad ++ window, you can see a row of colored buttons. Hover over each button to see what each button is responsible for.
The blue floppy disk in the upper left of the window, for example, allows you to save all changes made to the document
Use Notepad ++ Step 17 Step 8. Select a programming language
In this article, we'll look at examples of how to write code in C ++, Batch, and HTML, but in Notepad ++ you can use almost any language you want. After you choose your language, proceed to create the program.
Part 3 of 5: Create a Simple C ++ Program
Use Notepad ++ Step 18 Step 1. Click the Syntaxes tab at the top of the window to display the drop-down menu
Use Notepad ++ Step 19 Step 2. In the Syntax drop-down menu, hover the mouse cursor over the letter C to display a list of languages starting with that letter
Use Notepad ++ Step 20 Step 3. Select C ++ from the dropdown list
Most programmers have their first hands-on experience with C ++ coding by creating a program that says "Hello world!" or "Hello, World!" This is what we will do.
Use Notepad ++ Step 21 Step 4. Add the title to the program
Type in, add a program name (for example, "My First Program") and press ↵ Enter.
- Any text following the double slash will not be interpreted as code by the program.
- Example: To give a program the title "Hello Earth", type
// Hello Earth
in the Notepad ++ window.
Use Notepad ++ Step 22 Step 5. Add a preprocessor directive
Enter
#include
and press ↵ Enter. This command tells the C ++ compiler that the following lines are part of the program.Use Notepad ++ Step 23 Step 6. Declare the program function
Enter
int main ()
and press ↵ Enter.Use Notepad ++ Step 24 Step 7. Add an opening parenthesis
Enter
{
and press ↵ Enter. The main program code will be between this opening parenthesis and the closing parenthesis at the very end.Use Notepad ++ Step 25 Step 8. Enter the body of the program
Enter
std:: cout << "Hello world!";
and press ↵ Enter.Use Notepad ++ Step 26 Step 9. Add a closing parenthesis
Enter
}
… This bracket closes the executing part of the program.Use Notepad ++ Step 27 Step 10. Review the program code
It should look like this:
-
// Hello Earth!
-
#include
-
int main ()
-
{
-
std:: cout << "Hello world!";
-
}
Use Notepad ++ Step 28 Step 11. Save your program
Open the File menu and select Save As … from the drop-down menu, enter a name for the program, select a location to save, and click Save.
If you have a program on your computer that lets you run C ++ code, you can open your Hello World program there
Part 4 of 5: Create a Simple Batch File
Use Notepad ++ Step 29 Step 1. Click the Syntaxes tab at the top of the window to display the drop-down menu
Use Notepad ++ Step 30 Step 2. In the Syntax drop-down menu, move the mouse cursor over the letter B to display a list of languages
Use Notepad ++ Step 31 Step 3. Select Batch from the drop-down list
The batch file is a modified version of the commands used on the command line, so all batch files are opened at the command line.
Use Notepad ++ Step 32 Step 4. Enter the "echo" command
Add the line
@echo off
in Notepad ++ and press ↵ Enter.Use Notepad ++ Step 33 Step 5. Add the title of the program
Enter
Title "title"
and press ↵ Enter, making sure to replace “title” with your preferred title.When the program is launched, the title text will be displayed at the top of the Command Prompt window
Use Notepad ++ Step 34 Step 6. Enter the displayed message
Enter
echo "message"
and press ↵ Enter. Replace "message" with the text you want to display on the command line.- For example, if you want the command line to read "Humans are superior race!" Type
echo Humans are the superior race!
in Notepad ++.
Use Notepad ++ Step 35 Step 7. Stop the program
Enter
pause
in Notepad ++ to indicate the end of the program.Use Notepad ++ Step 36 Step 8. Review the program code
It should look like this:
-
@echo off
-
Title Improved Command Prompt
-
echo Humans are the superior race!
-
pause
Use Notepad ++ Step 37 Step 9. Save your program
Open the File menu and select Save As … from the drop-down menu, enter a name for the program, select a location to save, and click Save.
To run the program, find it in the save location and double-click on it
Part 5 of 5: Create a Simple HTML Program
Use Notepad ++ Step 38 Step 1. Click the Syntaxes tab at the top of the window to display the drop-down menu
Use Notepad ++ Step 39 Step 2. In the Syntax drop-down menu, move the mouse cursor over the letter H to display a list of languages
Use Notepad ++ Step 40 Step 3. Select HTML from the dropdown list
HTML is commonly used to create web pages, so in our example we will create simple headings and subheadings for web pages.
Use Notepad ++ Step 41 Step 4. Enter the title of the document
Type in Notepad ++ and press ↵ Enter.
Use Notepad ++ Step 42 Step 5. Add the "html" tag
Type and press ↵ Enter.
Use Notepad ++ Step 43 Step 6. Add the "body" tag
Type and press ↵ Enter. This tag is used to define text or other page content.
Use Notepad ++ Step 44 Step 7. Enter the title of the page
Enter
text
Use Notepad ++ Step 45 Step 8. Add text under the heading
Enter
text
Use Notepad ++ Step 46 Step 9. Close the html and body tags
Type and press ↵ Enter, then type.
Use Notepad ++ Step 47 Step 10. Review the program code
It should look like this:
Use Notepad ++ Step 48 Step 11. Save your program
Open the File menu and select Save As … from the drop-down menu, enter a name for the program, select a location to save, and click Save.
- If you choose the correct language before saving, Notepad ++ will determine the appropriate file format for it.
- The HTML file can be opened in any web browser.
Advice
Notepad ++ uses tabs to store various types of content, so in the event of a crash, you will most likely be able to return to your work after restarting Notepad ++
Warnings
- Choosing the wrong programming language will lead to errors when trying to run the program.
- Always do a test run of your program before showing it to other people. This will give you the opportunity to resolve any problems or make necessary changes.