Notepad++
Text editor and source code editor for Windows
From Wikipedia, the free encyclopedia
Notepad++ (sometimes npp or NPP) is a text and source code editor for use with Microsoft Windows. It supports tabbed editing, which allows working with multiple open files in one window. The program's name comes from the C postfix increment operator.[5]
| Notepad++ | |
|---|---|
Notepad++ v8.9.1 on Windows 11, depicting MediaWiki 1.45.1 source code | |
| Developer | Don Ho |
| Initial release | 24 November 2003 |
| Stable release | |
| Written in | C++ |
| Operating system | Windows[2] |
| Platform | IA-32, x86-64, AArch64 |
| Available in | 90 languages |
List of languages Afrikaans, Albanian, Arabic, Aragonese, Aranese, Azerbaijani, Basque, Belarusian, Bengali, Bosnian, Brazilian portuguese, Breton, Bulgarian, Catalan, Chinese Traditional, Chinese Simplified, Corsican, Croatian, Czech, Danish, Dutch, English, Esperanto, Estonian, Extremaduran, Persian, Finnish, French, Friulian, Galician, Georgian, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Indonesian, Irish, Italian, Japanese, Kabyle, Kannada, Kazakh, Korean, Kurdish, Kyrgyz, Latvian, Ligurian, Lithuanian, Luxembourgish, Macedonian, Malay, Marathi, Mongolian, Norwegian, Nynorsk, Occitan, Piglatin, Polish, Portuguese, Punjabi, Romanian, Russian, Samogitian, Sardinian, Serbian, Serbian Cyrillic, Sinhala, Slovak, Slovenian, Spanish, Spanish Argentinian, Swedish, Tagalog, Tajik Cyrillic, Tamil, Tatar, Telugu, Thai, Turkish, Ukrainian, Urdu, Uyghur, Uzbek, Uzbek Cyrillic, Venetian, Vietnamese, Welsh, Zulu | |
| Type | Source code editor |
| License | 2021:[a] GPL 3.0 or later[3] 2003:[b] GPL 2.0 or later[4] |
| Website | notepad-plus-plus |
| Repository | |
Notepad++ is released as free and open-source software under a GNU General Public License (GPL) 3.0 or later. The project was originally hosted on the SourceForge software repository (2003–2010), from where it was downloaded over 28 million times,[6][7] and twice won the SourceForge Community Choice Award for Best Developer Tool.[8] The project moved to TuxFamily (2010–2015), and then to GitHub (2015–present).[9] Notepad++ uses the Scintilla editor component. It supports Windows DirectWrite and all major Windows color font formats (COLRv0, COLRv1 and OpenType SVG).
History
Notepad++ development began in September 2003 by Don Ho, a former computer science student of Paris Diderot University.[10][11][12] Ho first used JEXT (a Java-based text editor)[13][14] at his company but, dissatisfied with its poor performance, he began to develop a text editor written in C++ with Scintilla.[12] He developed it in his spare time since the idea was rejected by his company.[12] Notepad++ was built as a Microsoft Windows application; the author considered, but rejected, the idea of using wxWidgets to port it to the Mac OS X and Unix platforms.[12]
Notepad++ was first released on SourceForge on 25 November 2003, as a Windows-only application.[10] It is based on the Scintilla editor component, and is written in C++ with only Windows API (Win32) application programming interface (API) calls using only the Standard Template Library (STL) to increase performance and reduce program size.[15][16]
In January 2010 the US government obliged US-based open source project hosts to deny access from Cuba, Iran, North Korea, Sudan, and Syria to comply with U.S. law.[17] As a response to what the developer felt was a violation of the free and open-source software (FOSS) philosophy, in June 2010 Notepad++ moved out of US territorial jurisdiction by releasing a version on TuxFamily, in France. Some community services of Notepad++ (such as the forums and bug tracker) remained on SourceForge until 2015 when Notepad++ left SourceForge completely.[18][19][20]
In 2011 Lifehacker described Notepad++ as "The Best Programming Text Editor for Windows", stating that "if you prefer a simple, lightweight, and extensible programming plain-text editor, our first choice is the free, open-source Notepad++".[21] Lifehacker criticized its user interface, stating that "It is, in fact, fairly ugly. Luckily you can do a lot to customize its looks, and what it lacks in polish, it makes up for in functionality".[21]
In 2014 Lifehacker readers voted Notepad++ as the "Most Popular Text Editor", with 40% of the 16,294 respondents specifying it as their most-loved editor.[22] The Lifehacker team summarized the program as being "fast, flexible, feature-packed, and completely free".[22]
In 2015 Stack Overflow conducted a worldwide Developer Survey, and Notepad++ was voted as the most used text editor worldwide with 34.7% of the 26,086 respondents claiming to use it daily.[23] Stack Overflow noted that "The more things change, the more likely it is those things are written in JavaScript with NotePad++ on a Windows machine".[23] The 2016 survey had Notepad++ at 35.6%.[24]
In 2015, in response to the staff hijacking of projects hosted on SourceForge, Notepad++ left SourceForge completely with the forums being moved to NodeBB and the bug tracker to GitHub.[20][25] In 2019, the website, notepad-plus-plus.org, moved to Hostinger.[18][20][26]
In 2025, state-sponsored hackers (suspected to be Chinese APT31) hijacked the update functionality for Notepad++ by compromising its hosting provider. Organizations in East Asia were targeted, redirecting their updates to malicious servers for several months to deliver malware. The issue was resolved by migrating to a more secure host and enforcing stronger update verification.[27][28][29] The mechanism of the attack involved a modification to the Notepad++ updater, gup.exe, with the modification introduced in Notepad++ version 8.8.8, where the executable obtains the latest application version from https://notepad-plus-plus.org/update/getDownloadUrl.php and retrieves the update URL from a file named gup.xml, with the retrieved file then saved to a temporary directory and executed; this connection could be TLS intercepted at the ISP level, allowing the download to be redirected to any URL, and although legitimate update files use a self-signed root certificate, the updater does not perform thorough checks for tampering. As a result, gup.exe executes a malicious payload named update.exe obtained from a malicious server, containing a NSIS installer which creates the %AppData%\Bluetooth\ directory, extracts four files, sets the directory to hidden, and executes BluetoothService.exe within the resulting payload. This then sideloads a malicious DLL which loads the shellcode file into memory, and then decrypts and executes it, allowing command and control over the computer by an attacker using a web interface.[30][31]
Features
Notepad++ is a source code editor. It features syntax highlighting, code folding and limited autocompletion for programming, scripting, and markup languages, but not intelligent code completion or syntax checking. As such, it may properly highlight code written in a supported scheme, but whether the syntax is internally sound or compilable, cannot be verified.[23][32][33][15] As of version 7.6.3, Notepad++ can highlight the elements of 78 syntaxes:
- ActionScript
- Ada
- ASN.1
- ASP
- Assembly
- AutoIt
- AviSynth scripts
- BaanC
- Batch files
- Blitz Basic
- C
- C#
- C++
- Caml
- CMake
- Cobol
- CoffeeScript
- Csound
- CSS
- D
- Diff
- Erlang
- escript
- Forth
- Fortran
- FreeBASIC
- Gui4Cli
- Haskell
- HTML
- INI files
- Intel HEX
- Inno Setup scripts
- Java
- JavaScript
- JSON
- JSP
- KiXtart
- LaTeX
- Lisp
- Lua
- Makefile
- MATLAB
- MMIX
- Nim
- nnCron
- NSIS scripts
- Objective-C
- OScript
- Pascal
- Perl
- PHP
- PostScript
- PowerShell (Broken)
- PureBasic
- Python
- R
- Rebol
- Registry script (.reg)
- Resource file
- Ruby
- Rust
- Scheme
- Shell script
- Smalltalk
- SPICE
- SQL
- Swift
- S-Record
- Tcl
- Tektronix HEX
- TeX
- txt2tags
- TypeScript
- Visual Basic
- Visual Prolog
- VHDL
- Verilog
- XML
- YAML
Notepad++ recognizes three newline representations (CR, CR+LF, and LF) and can convert between them on the fly. In addition, it supports reinterpreting plain text files in various character encodings and can convert them to ASCII, UTF-8 or UCS-2. As such, it can fix plain text that seem gibberish only because their character encoding is not properly detected.
Notepad++ also has features that improve plain text editing experience in general, such as:
- Autosave
- Finding and replacing strings of text with regular expressions
- Searching text strings within opened tabs
- Searching text strings in a directory
- Guided indentation
- Line bookmarking
- Macros
- Simultaneous editing[34]
- Split screen editing and synchronized scrolling
- Line operations, including sorting, case conversion (Uppercase, lowercase, camel case, sentence case), and removal of redundant whitespace
- Tabbed document interface[35]
Plugins
Notepad++ has support for macros and plugins,[36] and has been remarked for its robust plugin architecture which enabled various new features to be integrated into the program.[37] Currently, over 140 compatible plugins are developed for Notepad++, 10 of which are included by default in the program.[38] The first plugin to be included in the program was "TextFX", which includes W3C validation for HTML and CSS, text sorting, character case alteration and quote handling.[39]
Internationalization
Notepad++ supports internationalization through XML files in an application-specific format containing all internationalized strings (dialog captions, menu titles and items, etc.) in a certain language; this file can be reloaded from the application settings. Translations to new languages can thus be written by simply editing an existing file.
Political messaging
Notepad++ is notable for being vocal in politics, particularly in human rights and support of Ukraine in the Russo-Ukrainian war.
In March 2008, the "Boycott Beijing 2008" banner was placed on Notepad++'s SourceForge.net homepage.[40] A few months later most users in China were unable to reach the SourceForge.net website from 26 June to 24 July 2008. This led to the widespread belief that China had banned SourceForge.net in retaliation for the Boycott banner.[41][42][43]
On June 4, 2014, Notepad++ released version 6.4.4, codenamed "Tiananmen June Fourth Incident Edition". In the release notes, the author paid tribute to the pro-democracy protesters who were massacred in the aforementioned incident.[44]
In January 2015, the Notepad++ website was hacked by activists from the Fallaga Team who objected to an Easter egg endorsing Je suis Charlie.[45] The Fallaga Team has been linked to ISIL and is also believed to be responsible for the 2017 hacking of websites of the British National Health Service.[46]
On October 29, 2019, Notepad++ released version 7.8.1, codenamed "Free Uyghur", a codename shared with two sequential versions, 7.9 (December 5, 2019) and 7.9.2 (January 16, 2020). In the release notes for 7.8.1, the author expressed concern that hundreds of thousands of Uyghurs have been "subjected to political indoctrination, and sometimes even torture" in the Xinjiang re-education camps. He called for "additional pressure on the Chinese government to stop their oppressive actions and crimes concerning the Uyghur people".[47] The software's dedicated site came under a distributed-denial-of-service attack and its GitHub issues page was bombarded with vitriolic nationalistic rhetoric, though it later recovered after being moved behind Cloudflare's anti-DDoS service.[48][49]
On July 16, 2020, Notepad++ released version 7.8.9, codenamed "Stand with Hong Kong", a codename shared with two sequential versions, 7.9 (September 28, 2020) and 7.9.2 (January 1, 2021). In the release notes for 7.8.9, the author expressed his concern about the Chinese government implementation of the National Security Law in Hong Kong.[50] In retaliation, mainland Chinese browsers developed by Tencent (QQ Browser and WeChat's built-in browser), Alibaba (UC Browser), 360 and Sogou started blocking the official site's Download page, but not other pages.[51]
On February 3 and 15, 2022, Notepad++ released versions 8.3 and 8.3.1, both codenamed "Boycott Beijing 2022". In the release notice, the author expressed his concern about human rights in China, especially for Uyghurs and Hongkongers. He suggest his audience "not watch or pay attention to the games".[52][53]
On February 27, 2022, Notepad++ released version 8.3.2, codenamed "Declare variables, not war". In the release notes, the author condemned the Russian invasion of Ukraine and called for support for Ukraine.[54] On March 15, Notepad++ released version 8.3.3, codenamed "Make Apps, not war". The author likewise continued to express his views on the invasion, along with the next update, version 8.4, codenamed "Stand up for Ukraine", released on April 26.[55]
From June 4 through September 17, 2024, Notepad++ released 3 consecutive updates, all of which bore political slogans calling for the support of Taiwan, including "Support Taiwan's Sovereignty" (8.6.8),[56] "Support Taiwan's Independence" (8.6.9),[57] and "Support Taiwan's return to the UN" (8.7).[58]
On November 27 and 31, 2024, Notepad++ showed support for Ukraine again, with a release, version 8.7.2, codenamed "in a world of Elon, be a Zelensky",[59] and another criticizing Elon Musk, version 8.7.3, bearing the codename "leaving X for Bluesky".[60]
From March 8 through May 5, 2025, Notepad++ continued to express support for Ukraine once again with versions 8.7.8 through 8.8.1 released during this time; all are aptly codenamed "We Are With Ukraine".[61]