Questions tagged [notepad++]

Notepad++ is a free and open source text editor for Windows. It is designed as a replacement for the built-in Notepad application.

Notepad++ is a text editor and source code editor for , and it is distributed as free software. It aims to be lightweight and robust, and supports syntax highlighting and code folding for over 50 programming, scripting, and markup languages. The user interface of notepad++ was translated into multiple languages, e.g. English, German, French, etc.

Based on the powerful editing component Scintilla, Notepad++ is written in C++ and uses the pure Win32 API and STL which ensures rapid execution speed and smaller program size.

-- Don Ho, author of Notepad++, from the project home page

Most notable features:

  • Unicode support
  • Tabbed document interface
  • Drag-and-drop
  • Syntax highlighting and Syntax folding
  • Auto-completion support for a subset of the API of some programming languages
  • Macro recording and playback
  • Multi-Language environment support
  • Bookmark

License:

It is released under GPL License.

Resources:

Latest LTS Version: v7.8.9 released on 2020-07-16

6570 questions
1850
votes
20 answers

How do I format XML in Notepad++?

I have Notepad++ and I got some XML code which is very long. When I pasted it in Notepad++ there was a long line of code (difficult to read and work with). I want to know if there is a simple way to make the text readable (by readable I mean…
happyhardik
  • 22,805
  • 6
  • 42
  • 58
1155
votes
15 answers

Convert tabs to spaces in Notepad++

How do I convert tabs to spaces in Notepad++? I found a webpage that suggests it's possible, but I couldn't find any information about how to do it. I would like to be able to do that, because some web forms don't respect code with tabs in them.
Helephant
  • 15,502
  • 7
  • 37
  • 35
1085
votes
23 answers

How to reformat JSON in Notepad++?

I need Notepad++ to take a json string from this {"menu": {"id": "file","value": "File","popup": {"menuitem": [{"value": "New", "onclick": "CreateNewDoc()"},{"value": "Open", "onclick": "OpenDoc()"},{"value": "Close", "onclick":…
Donny V.
  • 19,411
  • 13
  • 59
  • 76
672
votes
9 answers

How To Auto-Format / Indent XML/HTML in Notepad++

Is there a way to re-indent a block of code? I'm looking for something similar to Ctrl+Shift+F in Eclipse (Auto-Format/Indent). To be clear, I already know how to format XML outside of Notepad++ (Eclipse works fine, as mentioned) so I don't need a…
SBoss
  • 8,255
  • 6
  • 25
  • 44
625
votes
14 answers

Removing duplicate rows in Notepad++

Is it possible to remove duplicated rows in Notepad++, leaving only a single occurrence of a line?
UGEEN
  • 8,919
  • 7
  • 29
  • 36
426
votes
13 answers

Notepad++ add to every line

I'm using Notepad++ and I can't figure this out : I have numerous lines all starting with http. I need to add some text in front of it in every line. Also, I need to add different text to the end of each line. Each line ends differently. What is…
johnkol
  • 4,271
  • 3
  • 11
  • 6
424
votes
6 answers

Regex: Remove lines containing "help", etc

I have a long document of commands. Using Notepad++ or regex, I want to delete all lines containing "help" including keyboard_help, etc. How can this be done?
dukevin
  • 19,591
  • 32
  • 77
  • 107
411
votes
22 answers

Removing empty lines in Notepad++

How can I replace empty lines in Notepad++? I tried a find and replace with the empty lines in the find, and nothing in the replace, but it did not work; it probably needs regex.
nomoreflash
  • 4,251
  • 3
  • 14
  • 10
386
votes
3 answers

How do I configure Notepad++ to use spaces instead of tabs?

Notepad++ keeps inserting tabs which later messes up my code. This doesn't just happen when I hit the tab key, but other times as well. I want it to use 4 spaces instead of tabs. How can I make Notepad++ insert spaces instead of tabs?
user656925
326
votes
18 answers

Find CRLF in Notepad++

How can I find/replace all CR/LF characters in Notepad++? I am looking for something equivalent to the ^p special character in Microsoft Word.
polara
  • 4,722
  • 5
  • 21
  • 19
314
votes
7 answers

Notepad++ Setting for Disabling Auto-open Previous Files

How do I stop Notepad++ from loading all files from the past session? Every time I open a file I have 10 other open tabs with all my past files. I don't want that. When I hit the close button I expect the program to do what I want and close it. If…
DantheMan
  • 6,577
  • 6
  • 30
  • 35
265
votes
5 answers

Does Notepad++ show all hidden characters?

In Notepad++ I have set "replace tab with 2 spaces". When coding in Python I copy-pasted some code from the web and it appeared indented correctly. But running the code resulted in indentation errors, which I solved in the end by removing all…
user89021
  • 13,714
  • 14
  • 51
  • 65
252
votes
5 answers

How to change background color in the Notepad++ text editor?

Does anyone know how to change the background color, font size, and other appearance-based settings in Notepad++? The default is white but I am trying to change it into a dark gray or something else.
xzibit
  • 2,727
  • 2
  • 15
  • 19
241
votes
6 answers

How can I convert uppercase letters to lowercase in Notepad++

I use Notepad ++ for coding mostly. How can I convert capital letters to lowercase and vice versa?
wordpressm
  • 2,971
  • 3
  • 16
  • 29
219
votes
2 answers

How do I stop Notepad++ from showing autocomplete for all words in the file

I'm trying to use Notepad++ with the Progress programming language. I have installed the language definition in %APPDATA%\Roaming\Notepad++ as userDefineLang.xml and syntax highlighting is working correctly. I've put a file in the notepad++…
user3102964
  • 2,199
  • 2
  • 10
  • 4
1
2 3
99 100