Sharing! What gained.

Jul 27, 2015

Notepad++: A popular Windows text editor




Normally we found text editor useful for taking note and side work but that is the only case for normal user. While for developer and CS Student text editor are used for coding and modifing source code.  Developer text editor like Notepad++ (Windows), Vim (Linux), Gedit (Linux) and Sublime Text are leading text editor on different platform.

Leading in Windows Platform

Notepad++ is written in C++ and developed using C++ standard library and Win32 API call which make blazing fast on Windows platform compared to other text editor built on heavy libraries.
Notepad++ uses Scintilla library as it engine for Syntax Highlighting and other text editor funtionality.

Using Notepad++ as C++ Compiler

 For using notepad++ as c++ compiler we will use MingGW compiler for compilation and send command to compiler using NppExec plugin.

  1. Download and install MingGW auto installer from here
  2. After installation of MingGW open C:/MingGW/bin/mingw-get.exe
  3. Then Select Basic Installtion from left side and check mingw32-gcc-g++ on right side 
  4. Then click Installation -> Apply
  5. Then new windows will appear and click Apply again.
  6. Then wait until process complete.
  7. Now install NppExec in Notepad++
  8. Go to Plugins -> Plugin Manager - > Show Plugin Manager
  9. Select NppExec and click install. 
  10. Now create new file and name it HelloWorld.cpp and write
    #include <iostream>
    #include <cstdlib>
    
    int main()
    {
     std::cout << "Hello, World!\n";
            system("pause");
     return 0;
    }
    
      
  11. Then go to Plugin -> NppExec -> Execute
  12. Copy this in to text box
    npp_save
    g++ "$(FULL_CURRENT_PATH)" -o "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
    npp_run $(CURRENT_DIRECTORY)\$(NAME_PART).exe
  13. Result

Share this Post!

1 comment:

  1. A Plain Text Editor
    Plain Text files
    That's right, if you're writer on a budget, you don't need to spend any money buying expensive writing software or apps. Instead, you can use the text editor that comes free with your operating system.
    Just open up Notepad on Windows or TextEdit on a Mac. I like plain text editors for writing something short quickly and easily, without thinking much about it. I wrote a blog post about the benefits of using plain text editors as writing software.
    Use for: writing whatever, wherever

    ReplyDelete