Download ArticleDownload Article

This How.com.vn 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.

Part 1
Part 1 of 5:

Installing

Download Article
  1. How.com.vn English: Step 1 Open the Notepad++ website.
    Go to https://notepad-plus-plus.org/ in your browser.
  2. How.com.vn English: Step 2 Click download.
    This tab is on the upper-left side of the page.
    Advertisement
  3. How.com.vn English: Step 3 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.
  4. How.com.vn English: Step 4 Double-click the setup file.
    It resembles a green frog.
  5. How.com.vn English: Step 5 Click Yes when prompted.
    The installation window will open.
  6. How.com.vn English: Step 6 Select a language.
    Click the language drop-down box, then click the language that you want to use.
  7. How.com.vn English: Step 7 Click OK.
    It's at the bottom of the Language window.
  8. How.com.vn English: Step 8 Follow the on-screen prompts.
    Do the following:
    • Click Next
    • Click I Agree
    • Click Next
    • Click Next
    • Check advanced options, then click Install
  9. How.com.vn English: Step 9 Click Finish.
    As long as you leave the "Run Notepad++" option checked, doing so will both close the installation window and open Notepad++.
  10. Advertisement
Part 2
Part 2 of 5:

Setting up Notepad++

Download Article
  1. How.com.vn English: Step 1 Open Notepad++ if it isn't open.
    Double-click the Notepad++ app icon, which resembles a white pad with a green frog on it.
  2. How.com.vn English: Step 2 Delete any text currently in Notepad++.
    You'll usually see some developer notes here, so just highlight and delete them.
  3. How.com.vn English: Step 3 Click Settings.
    This tab is at the top of the Notepad++ window. Clicking it prompts a drop-down menu.
  4. How.com.vn English: Step 4 Click Preferences….
    It's in the Settings drop-down menu. Doing so opens the Preferences window.
  5. How.com.vn English: Step 5 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.
  6. How.com.vn English: Step 6 Click Close.
    It's at the bottom of the Preferences window. Doing so saves any changes and closes the window.
  7. How.com.vn English: Step 7 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.
  8. How.com.vn English: Step 8 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.
  9. Advertisement
Part 3
Part 3 of 5:

Creating a Simple C++ Program

Download Article
  1. How.com.vn English: Step 1 Click the Language tab.
    It's at the top of the window. Clicking it prompts a drop-down menu.
  2. How.com.vn English: Step 2 Select C.
    You'll find this option in the Language drop-down menu. A pop-out menu will appear.
  3. How.com.vn English: Step 3 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]
  4. How.com.vn English: Step 4 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++.
  5. How.com.vn English: Step 5 Enter the preprocessor command.
    Type #include <iostream> into Notepad++, then press Enter. This command instructs C++ to run the following lines of code as a program.
  6. How.com.vn English: Step 6 Declare the program's function.
    Type int main () into Notepad++, then press Enter.
  7. How.com.vn English: Step 7 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.
  8. How.com.vn English: Step 8 Enter your program's execution code.
    Type std::cout << "Hello World!"; into Notepad++ and press Enter.
  9. How.com.vn English: Step 9 Add a closed bracket.
    Type } into Notepad++. This closes the program's execution phase.
  10. How.com.vn English: Step 10 Review your program.
    It should look something like this:
    • //Hi Earth
    • #include <iostream>
    • int main ()
    • {
    • std::cout << "Hello World!";
    • }
  11. How.com.vn English: Step 11 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.
  12. Advertisement
Part 4
Part 4 of 5:

Creating a Simple Batch Program

Download Article
  1. How.com.vn English: Step 1 Click the Language tab.
    It's at the top of the window. Clicking it prompts a drop-down menu.
  2. How.com.vn English: Step 2 Select B.
    You'll find this option in the Language drop-down menu. A pop-out menu will appear.
  3. How.com.vn English: Step 3 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]
  4. Step 4 Enter the "echo" command.
    Type @echo off into Notepad++ and press Enter.
  5. How.com.vn English: Step 5 Add a title for your program.
    Type in Title 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.
  6. How.com.vn English: Step 6 Enter display text.
    Type in echo 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++.
  7. How.com.vn English: Step 7 Halt the program.
    Type pause into Notepad++ to indicate the end of the program.
  8. How.com.vn English: Step 8 Review your code.
    It should look something like this:
    • @echo off
    • Title Improved Command Prompt
    • echo Humans are superior!
    • pause
  9. How.com.vn English: Step 9 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.
  10. Advertisement
Part 5
Part 5 of 5:

Creating a Simple HTML Program

Download Article
  1. How.com.vn English: Step 1 Click the Language tab.
    It's at the top of the window. Clicking it prompts a drop-down menu.
  2. How.com.vn English: Step 2 Select H.
    You'll find this option in the Language drop-down menu. A pop-out menu will appear.
  3. How.com.vn English: Step 3 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]
  4. How.com.vn English: Step 4 Enter your document header.
    Type <!DOCTYPE html> into Notepad++, then press Enter.
  5. Step 5 Add the "html" tag.
    Type <html> into Notepad++ and press Enter.
  6. Step 6 Add the "body" tag.
    Type <body> into Notepad++ and press Enter. This indicates that you'll be entering a section of text or other body information.
  7. How.com.vn English: Step 7 Enter your page's heading.
    Type in <h1>text</h1> 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 <h1>Welcome to my Swamp</h1> into Notepad++.
  8. How.com.vn English: Step 8 Add text below the heading.
    Type in <p>text</p> and press Enter. You'll replace "text" with your preferred text (e.g., "Make yourself right at home!").
  9. Step 9 Close the "html" and "body" tags.
    Type in </body> and press Enter, then type in </html>.
  10. How.com.vn English: Step 10 Review your code.
    It should look like this:
    • <!DOCTYPE html>
    • <html>
    • <body>
    • <h1>Welcome to my Swamp</h1>
    • <p>Make yourself right at home!</p>
    • </body>
    • </html>
  11. How.com.vn English: Step 11 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.
  12. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I copy and paste when using Notepad++?
    How.com.vn English: Zander Polk
    Zander Polk
    Community Answer
    You should be able to use Ctrl + C (Copy) and Ctrl + V (Paste) to transfer text in and out of Notepad ++. However, if you are using a Mac or it just doesn't work for you, double click or highlight the text and right-click it and then press copy or paste from the choices listed.
  • Question
    How do I open a text file in Notepad++?
    How.com.vn English: Community Answer
    Community Answer
    Click on File on the very top left then click on open from the drop-down menu. Then navigate to the text file you want to open. Double-click on it or click on it then click open.
  • Question
    How do I launch my project in Notepad++, especially in Notepad++ HTML?
    How.com.vn English: Patrick Antal
    Patrick Antal
    Community Answer
    Right-click on the file and select the option to open file with, an option box will open and allow you to select the program you wish you open the file with.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • Notepad++ uses tabs to hold different types of content, so if it crashes, your work will most likely still be available when you re-open Notepad++.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Selecting the wrong coding language will result in errors when attempting to run the program.
      • Always perform a test run of your program before showing it to other people. This will give you a chance to iron out any issues or make any necessary tweaks.
      Advertisement

      About This Article

      How.com.vn English: Jack Lloyd
      Co-authored by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for How.com.vn. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 237,511 times.
      How helpful is this?
      Co-authors: 10
      Updated: November 1, 2023
      Views: 237,511
      Categories: Office | Software
      Article SummaryX

      1.Download Notepad++ from https://notepad-plus-plus.org.
      2.Run the installer.
      3.Open Notepad++ in the Start menu.
      4.Manage your preferences in Settings > Preferences.
      5.Select a coding language from the Language menu.
      6.Write your code.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 237,511 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement