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

8
votes
7answers
28k views

Find and Replace several several different values all at once

I have a file with multiple instances of Text_1 and Text1 and I need to replace both those strings with Text_A and TextB respectively. Currently I'm doing two Find and Replace functions on each ...
170
votes
5answers
191k views

How can I view two files side by side in Notepad++

I would like to split the Notepad++ window so that I can edit two files side by side. How can I do this in Notepad++?
37
votes
4answers
54k views

How would I delete the first 27 characters from every line Notepad++?

I have a log file and I need to remove the first 27 characters off every line. You would have a line like this: 2011-09-25 01:25:29 [INFO] <Exazoro> wazup But it needs to be like this: <...
44
votes
3answers
25k views

Vertical line for the the right margin in Notepad++

Does anyone know if Notepad++ can display a vertical line on the right margin to indicated that the text will or will not fit on a printed page? I have looked but I cannot find it. Word wrap does ...
4
votes
1answer
7k views

How to make notepad++ the default editor for a Windows batch file?

In Windows, if you right-click a .bat file, there's an "Edit" option, which opens the .bat file with notepad. How do I make Windows use Notepad++ instead? Note that this is different from the ...
194
votes
6answers
93k views

How can one turn off spell checking in Notepad++?

Notepad++ recently added built-in support for spell checking, and it is enabled by default. Where can I turn it off?
47
votes
5answers
22k views

Switching to tabs to the right or left of the current tab in Notepad++

How can I switch to the document to the left or right of the current document in Notepad++? For example, if I have documents A, B, and C open, and I'm currently editing B, I would like a shortcut to ...
90
votes
1answer
75k views

Sorting lines in Notepad++ without the TextFx plugin

The current version of Notepad++ (at the time of this writing) is 6.6.3. Version 6.5.2 is the first that introduced a native (without a plugin) sorting function. At least, that's what they claim; even ...
46
votes
2answers
21k views

Closing Notepad++ tabs on closing application

Is it possible to make Notepad++ close all open tabs when it is shut down? Currently when a new file is opened with Notepad++ all previously open tabs (and of course the files open in those tabs) are ...
11
votes
6answers
22k views

What is the way to use FTP and Notepad++ (without using its build-in FTP or a FTP client like FileZilla)?

I use Notepad++ for more than 2 years now, and there's only 1 thing that it needs for me to be perfect: a actually-working-ftp-plugin. It has an FTP plugin, written by someone that meanwhile left the ...
10
votes
1answer
5k views

How to activate disabled cloud settings save option in Notepad++?

I received an update from Notepad++ and noticed a new option that allows you to save to various cloud storage services. However, some of the options are disabled. How do I enable them?
20
votes
4answers
37k views

How do I wrap lines in Notepad++ after N symbols?

I would like to have my lines in plain text in Notepad++ wrapped (soft wrapping for display, not insertion of line ends) after a reasonable amount of symbols (like 65 or 80). Is it possible? The only ...
11
votes
0answers
4k views

Reverse line order in Notepad++ [duplicate]

Is there a way to reverse the line order (considering \r\n line break) of a file using Notepad++? Input: Line 1 Line 2 Line 3 Required Output: Line 3 Line 2 Line 1 Any plugin/...
8
votes
3answers
12k views

Notepad++ - Highlight text and insert html <tag></tag> around it

Is there a way to have this feature in Notepad++: select some text insert an html <tag>``</tag> around it (ie. <strong>, <em> etc)
6
votes
1answer
7k views

How do I edit or add to Notepad++ HTML/CSS autocomplete?

Could anyone tell me how to go about editing the existing CSS and/or HTML autocomplete language in Notepad++? My Google-fu has let me down and I can't find an answer. In essence, I want to add some ...
3
votes
1answer
892 views

Remove/Delete current line in Notepad++

Specifically I want to make a context menu option that (on rightclick) removes/deletes the current line. The catch is the line should be deleted even if it´s not selected. Meaning I don't have to use ...
15
votes
7answers
23k views

Notepad++ keyboard shortcut to toggle “Find Result” window

Is there a keyboard shortcut to toggle "Find Result" windows? Or can this be configured in the Shortcut Mapper? I seem cannot find the setting.
1
vote
4answers
2k views

Close the Find/Replace dialog in Notepad++ with a keyboard shortcut?

When I do a find (not a find all, which closes the dialog) or replace in Notepad++, the focus will remain on the find/replace dialog. If I want to focus on the main window with the text in it, I ...
202
votes
2answers
76k views

Assigning custom extensions to a language's syntax highlighting in Notepad++

In the current version of Notepad++ opening .sql files results in Notepad applying SQL syntax highlighting to it. I'd like Notepad++ to do the same for other extensions as well, is there some setting ...
62
votes
4answers
153k views

How to remove linebreaks in Notepad++?

For example, this: This text has been splitted in lines, and it's longer than 3200 words, so it would be great to find and replace line breaks like these.
103
votes
1answer
58k views

How do I get Notepad++ to associate a file type with a language? [duplicate]

I have associated .wxs files with Notepad++. So far so good. However, it doesn't remember that it should use XML syntax highlighting. How do I associate a file-type with a Language?
55
votes
1answer
85k views

HTML Tag Auto Complete in Notepad++?

I would like for Notepad++ to add the closing tag when I finish typing the open tag. I know there is a plugin to do this for XML but it doesn't work on my HTML files and I have yet to find one that ...
26
votes
8answers
180k views

Replace Carriage Return and Line Feed in Notepad++

I have a file with a mix of CRLF and LF, and wish to remove the LF. I am new to Notepad++ and just downloaded V6.23. I'm using the search/replace dialogue box in extended mode. It will find and ...
40
votes
6answers
56k views

How to set the default language in Notepad++

I mostly use Notepad++ for dealing with XML files. It would be good if Notepad++ parsed and colorized my files based on the XML language when I open the files. Instead, I have to open the file, pick ...
62
votes
1answer
15k views

How can I tell Notepad++ to always use a particular language with a particular file extension

I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually ...
16
votes
3answers
29k views

notepad++: How to reset all the setting to default ones?

i change settings a lot. Now, i think I've played with Notepad++ too much. Now how can I reset the settings ? btw, I don't want to uninstall, then install again. that's not so "superuser"-ish, right ?...
30
votes
3answers
15k 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?
18
votes
7answers
30k 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 ...
16
votes
1answer
6k views

How to disable the “highlight changes” feature?

Our admins deployed a new version of Notepad++ (version 6.3) on our machines, and this version is highlighting all changes done in a file by default. It does so by setting the background color of ...
22
votes
3answers
8k views

Does Notepad++ have a minimap feature?

I'm not really sure what to call the "minimap" feature of a text editor. For example, Sublime Text has what I would call a Minimap feature. A skinny map on the left side where you can click to get ...
2
votes
2answers
1k views

Automatically use specific language in Notepad++ for files with no extension

Specifically, I want NPP to remember to use Ruby syntax highlighting whenever I open a Vagrantfile. These don't have an extension, and I tried adding "Vagrantfile" to the user extensions in the style ...
2
votes
1answer
8k views

How to add something every x line

How do i add Keyboard : E : KeyDown DELAY : 1300 Keyboard : E : KeyUp DELAY : 200 TO Every X Line in a text document?? anyone? =) Like every 9 line i want == Keyboard : E : KeyDown DELAY : 1300 ...
18
votes
1answer
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 ...
9
votes
2answers
27k views

Transpose column to row

How do I convert code from a column: 1 2 3 4 to in a row (with spaces): 1 2 3 4 using Notepad++ ?
3
votes
1answer
7k views

Delete all text before and after a certain string

I have some URL like the following http://www.SOMEURL.com/first-category/1343381-example-text-text-text-text-2000-a.html What I want is to simple delete all of the text before and after the number ...
2
votes
3answers
10k views

How to remove the last character on every line in Notepad++?

In NotePad++ how do I turn this: GingeredRovinsky7|NTDc4MAODY3Mg| into this: GingeredRovinsky7=NTDc4MAODY3Mg I know I can do a find and replace and replace the first | with = However I need to ...
2
votes
1answer
648 views

Count number of lines in file using batch

I am using TrailerCount.bat file to count the number of lines in text file using below mentioned code @Echo off ::set newline=^& echo. SET FilePath=%1 Set /a _Lines=0 For /f %%j in ('Type %...
9
votes
3answers
5k views

Show/Hide function folding margin on Notepad++

Is it possible to get rid of the function folding margin on Notepad++? It seems like the sort of thing that should be in the prefs but I'm not seeing it anywhere.
6
votes
1answer
1k views

Why is notepad++ writing to my new document?

I updated notepad++ and it started writing to the screen. I quickly closed it not knowing what it was, but now I'm curious do I have a 'hacked' copy of notepad++?
4
votes
2answers
525 views

Make style changes in notepad++ permanent

When I select a theme and make changes to the font name and font size, they always default back to original settings whenever I reopen notepad++. Is there a way of making font name and size changes to ...
3
votes
1answer
1k views

Notepad++ clone view - more than 2

Is it possible to have more than 2 (3 or 4) clone view of a file in the same notepad++ instance? If yes - how? Any plugin for this purpose? Thank you.
2
votes
2answers
2k views

Reformat text as columns in Notepad++?

Anyone know of a way to reformat either the whole txt file or the selection (I don't really care, either is fine) so that it would would add spaces to align text as columns? example: Green 5 Vest ...
2
votes
1answer
1k views

Possibilities of splitting Notepad++ into more than 2 windows

I would like to open 4 Notepad++ windows at once, in the same pannel. Currently, I am only able to split it into two, and would like to know if there is a plugin that enables 4 views at at same time, ...
2
votes
1answer
834 views

Create a hotkey /keyboard shortcut to close the Notepad++ Find Results window

I have always wished that Notepad++ had a keyboard shortcut for closing the Find Results pane / window that appears when I do one of the following: Find All in All Opened Documents Find All in ...
1
vote
1answer
4k views

How to merge lines every 3 rows in Notepad++?

Like this: A B C D E F G H I To this: A B C D E F G H I It's a 2500 rows file, so i wouldn't just ctrl+j it.
1
vote
1answer
368 views

Can I filter and sort email ids in notepad++ and other text editors?

I have a txt file which has around 20000 email id. I want to know email count from gmail, yahoo, ymail, googlemail, aol, live,custom domain, gmx, and other temporary emails separately. And also i need ...
0
votes
1answer
97 views

Notepad++ Deleting everything apart from 40 variables, putting them on their own line, combining regex

I am in Notepad++. I have the following data embedded in a large html file. I want to get the variables before the </ix:nonNumeric> at the end of the lines, onto their own lines by themselves so ...
115
votes
10answers
109k 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?
155
votes
6answers
98k views

Notepad++ is unable to load langs.xml, why?

Whenever I open NotePad++ the following error message appears: --------------------------- Configurator --------------------------- Load langs.xml failed! --------------------------- ...
95
votes
10answers
184k views

How can the font size be changed in Notepad++?

How can the font size be changed in Notepad++? I just downloaded and installed Notepad++ v5.4.5 (I have been using UltraEdit for the last 11.5 years) and can not find a menu command for changing the ...