Notepad++ is a free source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License.

learn more… | top users | synonyms

31
votes
3answers
16k views

Open two instances of Notepad++

I have a question about notepad++ I want to run notepad++ twice. Like in this paint printscreen How I want it: Not what I want: Is this possible?
30
votes
5answers
137k views

Auto format document with Notepad++

In Visual Studio, (and a few other Microsoft editors), you can auto format a document with a simple Ctrl + K, Ctrl + D. This inserts line breaks and tabbing automatically. Is there a similar feature ...
0
votes
0answers
5 views

Select/Copy Collapsed Folding group without expansion

Notepad++ supports folding: code folding How do I copy the folded text as it appears on the screen without expansion? I am creating documentation and only want to copy/paste what is on the screen, ...
0
votes
1answer
51 views

In Notepad++, how do I remove characters before the fifth | character?

In Notepad++, I want to remove everything up to (before) and including the fifth | character in a line, and keep everything after the fifth | character. So, the original line would look like: note,:...
3
votes
1answer
353 views

file changes — notification and diff

I'm looking for a way to be notified if a text file changes (Windows 7), and be offered a file diff upon such a change. For example, the text editor Notepad++ does part of this, notifying me of an ...
29
votes
3answers
29k views

How to expand/collapse all blocks of ruby code in notepad++?

Is there any way how to collapse all blocks in ruby code in Notepad++? It is much easy to navigate the code of functions, routes in Sinatra and blocks in rufus if all blocks are collapsed.
19
votes
3answers
20k views

Notepad++ expand/collapse block with keyboard

My question is pretty straight-forward, is there a way in Notepad++ to expand and collapse blocks with keyboard shortcut? I already know about the alt+0 and alt+shift+0 to expand / collapse all blocks ...
0
votes
1answer
11 views

Alter specific text to string as a key in JSON

I'm trying to convert numbers as shown in figure below to a JSON key with value in an object. Please can someone help me with that? The image below shows what I'm trying to do in notepad++.
2
votes
0answers
12 views

Windows tab header font messed up

Please help -- some of my Windows 10 fonts are messed up. I have reset all DPI scaling, font settings, themes etc. but cannot get rid of this problem. See this image as an example: http://imgur.com/...
0
votes
1answer
226 views

Batch File to Set Default Programs Without Administrator Rights

UPDATE 7/15/2016: A couple days ago, all the Group Policies pertaining to our OU stopped applying - meaning that there are no more restrictions. I now have full Command Line and Registry access which ...
18
votes
8answers
31k views

Why does Notepad++ disable the HexEditor plugin?

Notepad++ is a great editor... The regular expression facility is stunted, but I can live with that. It is OK for most find/replace situations, and for the occasional others I'll just hop across to ...
5
votes
2answers
3k views

Notepad++ highlight transparency

I use dark themes and when I select a word, Notepad++ highlights all the occurences of that word in the current document. But the highlight color for matches other than the current word is somehow ...
0
votes
0answers
9 views

nppExec and Bookmarks

Suppose I am using notepad++ and have a bunch of Bookmarks set. On each line that I have a bookmark set I want nppExec (a plugin to notepad++) to do a task. So is there a way to get nppExec to ...
23
votes
6answers
107k views

Remove empty lines and spaces in Notepad++?

Suppose I have these lines: A B C D E I want remove empty lines, and the spaces before the letter too, like this: A B C D E How can I achieve this in Notepad++?
0
votes
0answers
13 views

I want to use Notepad++ with Dropbox but the option has nothing listed on Version 6.9.2

I have dropbox installed and google drive but I can't see them up here and I tried to enter the .exe file location or the cloud file location didn't work.
43
votes
9answers
26k views

Flip or reverse line order in Notepad++

I want to flip line orders of a document with 500+ lines. The lines aren't just numbers, some include text and other characters. It's a mix. Example: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 ...
0
votes
0answers
13 views

Notepad++: How to make UniversalIndentGUI plugin start with fortran format by default?

I installed UniversalIndentGUI in notepad++. However, every time I launched notepad++, the default format of this UniversalIndentGUI is "Artistic Style" like this How to make the default format to ...
15
votes
3answers
9k views

How To Change Font Size In Notepad++

Just like the title says, I'm trying to change the font size in Notepad++ to what it should be. I don't know why it's so huge.
0
votes
1answer
51 views

Using regex to extract specific fields from css, using notepad++

I've got a css stylesheet on which I want to perform some analysis and it seemed like a good idea to use regex inside Notepad++. Now I find I can't write the regex and maybe it wasn't a good idea but, ...
6
votes
6answers
24k views

Add a string to every line of a selection

To prepend a string to every line of a selection, I usually use the "increase line indent" (which adds a tab to every line) and then run a search for tab / replace with my string. Does anyone know ...
1
vote
1answer
32 views

Reset width in Notepad++

I have a document open in Notepad++, and for some reason the horizontal scrollbar is tiny. It looks like the width of the text area is over 7000 characters. The document does have a (single) long line,...
4
votes
1answer
2k views

notepad++ - Applying CSS styles for SCSS files?

In Notepad++, I have some SCSS files for which I would like the syntax to be highlighted like CSS files are. How do I do this in Notepad++? In other words, I would like to apply the same styles to ...
2
votes
2answers
2k views

Choose whether to save when quit

I am using notepad++ V6.4.2. When I close a file, it seems to save defaultly without asking me. How can I configure to get the save/not_save option back?
2
votes
2answers
34 views

notepad ++ regex end of line replace

I want to replace the end of a line on line with ';' but only on lines that do not already end in ';'. I came up with the following to put in the replace dialog Find What = '[^\;]\r\n' Replace ...
18
votes
2answers
5k views

The Notepad++ tab bar keeps hiding

Is there a way to always force the tab bar to show? I go to Settings → Preferences → General → Tab Bar and uncheck hide, but the next time I open Notepad++, the tab bar is gone, even ...
30
votes
4answers
68k views

Fastest way to comment out multiple lines in Notepad++

In Eclipse it is possible to comment out multiple lines by selecting them and executing CTRL + /: // helloworld Is this possible in Notepad++ as well instead of typing // in front of an individual ...
2
votes
1answer
43 views

Notepad++ messed up my numbers

How do I fix the problem where Notepadd++ doesn't show numbers like usual
0
votes
1answer
1k views

How do I make NppExec open Git Bash in its own window?

I installed the NppExec plugin for Notepad++ to be able to run Git Bash from inside the application, but it runs the script within the built-in console in Notepad++. This makes the colors disappear, ...
1
vote
1answer
27 views

Notepad ++ line replace

Is it possible in Notepad++ to select a line and replace the selected line in all the files I have open? If I have on 2 lines the same text, is it possible to replace that text only on a certain ...
1
vote
1answer
21 views

Notepad++ turning my angle brackets into comments automatically

I'll be quick. I'm creating a simple website that generates a set of random characters, but I'm having a little trouble with the php code. From what I can see, Notepad++ is automatically turning my ...
60
votes
5answers
95k views

How do I set Notepad++ as the default editor?

I want set Notepad++ as the default editor. I tried to set it by right-clicking on a file, then Open With. But I did not see Notepad++ in the resulting list (even after clicking on Choose Other ...
0
votes
1answer
32 views

How to select text with same style token applied in notepad++?

I want to select all text with same style token applied on notepad++. My goal is to remove all similarly styled words and sentences.
2
votes
1answer
18 views

Notepad++: Force file/UI tabs to certain width regardless of filename length?

Is there a way to force tabs to identical size, regardless of filename length? Here you can see that the size changes entirely depending on the filename length and also position in a multiline config,...
0
votes
1answer
46 views

notepad++ - How to choose editor background color for a specific language?

How can I set the background color of the editor for a specific language in notepad++? I know there are similar question on superuser but they don't solve the following problem I have: If I change ...
0
votes
1answer
29 views

How to convert several rows to columns in notepad++

Let's say I have this in Notepad++: CHARGE_ID LAST_MODIFIED CHARGE PROPORTION CURRENCY_ID ACCOUNT_ID 2194703831 28-06-2016 11:44:02 2.49 1 95000060 590511 I would like to convert it ...
1
vote
1answer
38 views

Print all files in a directory as text

I want to print all the files in a subdirectory tree as text files (its a bunch of code and config files, all text). I am using Windows 8 The file explorer does not seem to have a "Print" option. I ...
1
vote
2answers
39 views

Notepad++ - search for same things that are in line twice

I would like to know if there is way to search file for two things in same line. For example if I want to search line with "variable >=" and "variable >=". Problem is that I dont know what "variable" ...
116
votes
10answers
111k views

How to delete all lines in Notepad++ except lines containing a word I need?

I have a text file. I want to keep lines started with <Path>, and delete all the other lines. How can I do it?
23
votes
3answers
21k views

Opening a text file at a certain line (shortcut)

I would like to define a shortcut key which opens a particular text file at a particular line. My preferred editor is Notepad++, but suggestions involving other editors are welcome. How to open ...
12
votes
2answers
8k views

Notepad++ Jump between opening and closing html tags

If I've currently got a html tag highlighted in Notepad++, is there a way to automatically jump to the closing tag and vice-versa?
0
votes
3answers
2k views

notepad ++ highlight matching div

When I select a div in notepad ++ it would highlight the matching div via the line on the left (next to the line numbers). I've just installed Notepad a fresh on a new machine and its no longer ...
6
votes
2answers
1k views

Notepad++ Hangs On Close

I'm using Notepad++ on Windows 8.1. Until recently it closed just fine when I clicked the X but now when I do so it doesn't close but rather freeze the application. When I repeatedly click the X the ...
0
votes
1answer
32 views

Replace text at specific line number with other text using notepad++

I have hundreds of input files that are very similar, but contain slight differences. I want to replace every line 4 in all open documents with another line of text. The search and replace function ...
0
votes
0answers
25 views

How to fix file tabs position in notepad++?

If lots of files opened in notepad++, there will be several lines of file tabs. Click on different file tabs will change tab position. Is there a way to fix tab position? Thanks!
17
votes
7answers
19k views

Is there a way to manage tabs efficiently in Notepad++

Is there a way to group tabs in Notepad++? I frequently end-up with 30 or more tabs (files) opened, and it's becoming quite hard to figure out which tab I want to switch to. If I could group them ...
10
votes
2answers
6k views

Can Notepad++ be made to open file links in itself?

In Settings/Preferences, Notepad++ has an option on the MISC. tab under 'Clickable Link Settings' to the right, to Enable to open links found in the edited files. It underlines them and opens them on ...
0
votes
1answer
16 views

Files Edited by N++ 6.9.2 Not Backed Up to OneDrive Cloud

Having supplied the local Onedrive documents directory to the Custom Backup Directory box in the Preferences\Backup dialog and the same pathname to the Preferences\Cloud box the xml config files were ...
29
votes
2answers
26k views

Permanently highlight all occurrences of text in Notepad++?

In Notepad++, when I select (eg. double-click) a "word", it gets highlighted. It needs to be separated with a non-alpha character from the rest of the text. The highlight remains until the text is ...
4
votes
4answers
2k views

Why is notepad++ blocking my autohotkey shortcuts?

I have a series of keyboard shortcuts defined in my autohotkey script. Currently, none of them work whenever notepad++ has focus. The script is loaded as usual. The keyboard shortcuts (mostly stuff ...
2
votes
0answers
4k views

How do I enable the Cloud settings in Notepad++ 6.6.7 for Windows 8.1 Update 1?

I updated to Notepad++ 6.6.7 and wanted to move the settings to my OneDrive. But when I open Settings->Preferences->Cloud, the DropBox and OneDrive options are both disabled. How do I enable them? ...