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.
6,801
questions
1
vote
2
answers
16
views
Append End of Line with Substring from Current Line
I've scoured Stack Overflow for something just like this and can't seem to come up with a solution. I've got some text that looks like this:
command.Parameters.Add("@Id
command.Parameters.Add(&...
-1
votes
1
answer
31
views
Set Notepad++ as default editor for xml-files with regedit
I am trying to set notepad++ as my default editor for XML, INI and TXT files.
It already works for INI and TXT files by setting following keys to "C:\Program Files\Notepad++\notepad++.exe" &...
0
votes
1
answer
13
views
Removing line breaks after fixed length
I have a text file with thousands of XML strings on each line. However, if any XML string exceeds 32767 characters, then the remaining text is moved to next line.
I need to remove such line breaks to ...
-1
votes
2
answers
15
views
How to remove all Text before and after in notepad++
I have GPS .SRT file of DJI Mavic Pro, I want to only Longitude and Latitude values, and delete all other text.
GPS string as per below
1
00:00:00,000 --> 00:00:00,020
[iso : 450] [shutter : 1/50.0]...
-2
votes
1
answer
14
views
how to keep only 11 length by line in notepad? [closed]
for exemple, there will be a list like this one:
12345678901:1020
12345678902:1030563
I'd like to keep it like this format:
12345678901
12345678902
basically, 11 digits by line
-3
votes
2
answers
34
views
Notepad++ Transforme all content inside curly bracket into one line [closed]
I would like to transform all content inside curly bracket into one line, using regular expression on notepad++.
Before
[10.10.10.10] => {
"out_hosts.stdout": " text"
}
...
0
votes
1
answer
24
views
Only shows those lines that contain a keyword or don't
When you search in pspad, you can click copy and activate "copy lines without matches".
That only copies those lines that contain a keyword or don't to a new window.
How do I accomplish the ...
0
votes
1
answer
15
views
How to separate files by the ninth digit
My idea would be to keep only the ones that contain the number "8" in the ninth position.
Example:
A list of numbers with 11 numbers each line
162156258 12 we keep this one because it's an &...
-2
votes
2
answers
62
views
Merge 2 files in Notepad++ or Vim
I have 2 files with me.
File1.txt:
Bus
Railway
Cinema
Motor
File2.txt:
Stand
Station
Theatre
Cycle
Above 2 files I have with me and I need output like below.
Output.txt:
Bus Stand
Railway Station
...
-1
votes
1
answer
11
views
How to bulk edit/replace numbers in Notepad++
I want to change the following:
0.25
10.00
10.00
to
"0.25"
"10.00"
"10.00"
So that means changing to: "(number)"
1
vote
1
answer
30
views
Regex: negative lookbehind not directly before target
I am debugging some JavaScript code and I need to identify lines that contain " = " followed by a comparison operator such as "==", ">", "<", "!=&...
0
votes
1
answer
33
views
How to fix "EOF when reading a line" using plugin Python-Notepad++
I'm using python plugin in Notepad++ and trying to use input() in a script I get this error
>>> name=input()
Traceback (most recent call last):
File "<console>", line 1, in &...
-1
votes
1
answer
22
views
Copy-paste multiple values to their placeholders notepad++
Suppose markup (many lines with same structure)
<a href="">xxx</a>
<a href="">yyy</a>
<a href="">zzz</a>
What is the best way to ...
0
votes
0
answers
18
views
How to change commenting method in SCF by Volar?
I use Volar extension in VS Code to edit SFC files for Vue. Also the Notepad++ Keymap extension is installed.
Everything works as expected, but I don't know how to change the commenting line command (...
0
votes
1
answer
27
views
How do I add time to a list of timestamps in Notepad++
Now, I have a list of timestamps which I asked how to remove hours and miliseconds from them here:
How do I remove starting and ending parts of strings for each line in Notepad++
My next issue is I ...
0
votes
1
answer
34
views
How do I turn all words uppercase and in square brackets in Notepad++
I know it sounds weird but I have a list of names (excluding surnames) and I need them all uppercase within square brackets. For example from Michael to [MICHAEL] for all words in all lines in the ...
0
votes
1
answer
28
views
How do I remove starting and ending parts of strings for each line in Notepad++
I have a list of timestamps containing only one timestamp on each line like 00:06:29:14 which follows as: hours, minutes, seconds, and milliseconds. Now, I want to delete hours and milliseconds to get ...
0
votes
1
answer
44
views
Regexp regular/recursive find/replace in Notepad++
How to split some strings defined in a specific format:
[length namevalue field]name=value[length namevalue field]name=value[length namevalue field]name=value[length namevalue field]name=value
Is it ...
0
votes
2
answers
27
views
Notepad++ regexp search and replace
I have a series of 12 comma-separated digits and want to extract the first, 4th, 7th, and 10th digits. How to do this without writing it out too much ?
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
to
1, 4,...
0
votes
1
answer
48
views
find and replace VIM but with interactively previous and next word like notepad++
In notepad++, you can simply ctrl+h to find and replace, where first field asking what word, and second field asking what should it replace. Also, there's arrow up (previous) and arrow down (next).
...
0
votes
1
answer
28
views
Open a file (not .txt) with notepad++ and replace a line with string
I'm trying to open a file, needs to be with notepad++, and replace a certain line and position with a string
I saw some examples using the open function with readlines,write,append,replace,... but the ...
0
votes
2
answers
30
views
Replacing numbers with asterisks
I want to replace multiple numbers with asterisks with Notepad++, how to?
Example:
109.169.76.0/22
109.169.88.0/21
109.190.0.0/16
109.196.166.0/23
109.196.172.0/24
109.196.175.0/24
109.200.30.0/23
109....
0
votes
0
answers
24
views
Can I make VSCode column mode like Notepadd++?
I'm a longterm user of Notepad++ and new user of VSCode, where I think the column mode workflow is rather poor. I'm seeking help to reproduce the NPP workflow so far as is possible.
In NPP it goes ...
0
votes
2
answers
47
views
Line feeder in unwanted places causing problem in reading data
My data has over 50,000+ observations. The problem is line feeder LF is inserted all over the place causing import into statistical software like STATA a nightmare. I have tried many different options ...
-1
votes
0
answers
23
views
How to get the information inside square brackets e.g. "TestUser" : [ "this is a test"], "TestPassword":["password"] using regex [duplicate]
I need to get the information using regular expression. I need to display it in the format of
TestUser
password
There are 100s of user and passwords to get.
Cannot share actual code due to privacy
txt ...
0
votes
2
answers
46
views
Replace for specific verse [duplicate]
I literally spent hours yesterday trying to replace line breaks in notepad++.
I had something like:
"1:30 And to every beast of the earth, and to every fowl of the air,
and to every thing that ...
-2
votes
0
answers
21
views
How to add text lines to multiple files
Hi I have hundreds of cfg files that are used for configuring overlays in RetroArch emulator.
Each game has its own config as shown -
overlays = 1
overlay0_overlay = 1941.png
overlay0_full_screen = ...
0
votes
1
answer
34
views
Notepad++ menu font is white. How o change it
I have messed up notepad++ such that the menu font appears in white.
Not sure how to change it. Any tips?
0
votes
0
answers
21
views
Notepad++ Compare Plugin is not per-character (uses smart highlighting/grouping)
Compare plugin version 2.0.2
Im trying to compare these decimal numbers(the lon/lat values on the right of each file). As you can see it highlights(in orange) all numbers after the decimal place as &...
0
votes
0
answers
21
views
How to quickly move the cursor between the next set of quotation marks in Notepad++
I'm doing some work on Notepad++ that involves enclosing text in quotation marks, and while I've mass-inserted said quotes where they need to be, there are many unevenly spaced rows with tags and ...
0
votes
1
answer
23
views
Notepad++ Insert a character before the last three characters in every line
Is it possible and how do I insert a character before the last three characters in every line?
For example, I have something like this:
5.400
830
400
1.740
1.000
2.600
310
2.280
830
520
4.650
1.450
...
0
votes
1
answer
25
views
Inputs required on Regex notepad ++ (updating specific row)
I am trying to update specific rows starting with 0500 and update positions 31 to 35, 41 to 45 with 00000 in notepad ++ using regex. Is it something possible ? positive feedback will be really ...
0
votes
1
answer
34
views
Edit Python script in Notepad++ and run it in Python Shell
I love Notepad++ to edit my Python code. But I want to run my scripts in Python Shell. How can I do it?
A piece of script:
Expected result of running script from Notepad++:
0
votes
2
answers
22
views
Is there a way to delete parts that meet the conditions in notepad++?
I want to erase all parts of notepad++ between certain symbols.
For example, if there's a phrase that says [], I want to erase it all, whether it's [apple] or [basketball].
I have nothing to do with ...
0
votes
1
answer
47
views
Replace comma decimal separator with regex without change it in text values
In txt file for example, with Notepad++ for example, I would target and replace the comma when it is used as a decimal separator in numbers surrounded by tabs ; and let it as a comma when it is used ...
0
votes
0
answers
11
views
Notepad++ Associating Files of the Same Extension with Different User Defined Languages
Is it possible to associate a user defined language (UDL) with a specific file instead of all files of an extension? I have many .txt files that are parsed by an application in slightly different ways ...
-1
votes
3
answers
53
views
Add special characther in notepad++/excel
I Need to replace a string like this:
20211201153000
In date format like this
2021/12/01 15:30:00 (yyyy/MM/GG hh:mm:ss)
Any solution?
0
votes
2
answers
48
views
Remove text starting form a specific character in Notepad++
I have a text document that looks like this:
2321.00 / 2321.00
342.44 / 4324
I need to remove everything starting with the first space and do it for every line.
The result should look like this:
2321....
0
votes
3
answers
31
views
How to bookmark every 5th row in Notepad++
I need to extract every 6th row from a text document. I think the first step is to bookmark them. I'm looking for a regex expression that will do that.
thanks
0
votes
1
answer
34
views
Notepad++ Put double quotes when finding a character
given: csv file with 500 lines of information What kind of search and replace can be done in notepad++ through regular expressions or through extended ones, so that when a certain character is found ...
0
votes
3
answers
48
views
Notepad++ regex extract two options
I've a list below:
7080508136242611718:7080508978035787525:7549dda86ba9af19:31050:install_id=7080508978035787525; store-country-code=us; store-idc=useast5; ttreq=1$...
0
votes
1
answer
53
views
How to bookmark lines from/to
For an example i got in Emeditor/notepad++ like 15mln lines
Its possible to bookmark lines for an example from 1 line to 1503232?
or from 3500000 to 5200005?
if yes please tell me how to do it :)
0
votes
1
answer
20
views
Regex capture group with non-uniform space group
I'm trying to parse the output of the "display interface brief" Comware switch command to convert it to a CSV file using RegEx. This command is printed using the following format:
Interface ...
0
votes
0
answers
10
views
Error parsing `xmlns:xsi` as NCName datatype
I ran my XML files through NotePad++. It can't seem to validate beyond the header/namespace information?
Using the following header information:
<?xml version="1.0"?>
<dsInvoiceData ...
-4
votes
1
answer
48
views
"NUL" character is missing
I have got characters on notepad++ like below screenshot.
When I am copied and pasted same line in other new notepad++ file, "NUL" character was missing. Actually "NUL" character ...
-2
votes
2
answers
44
views
RegEX match only first value
Hello in regex how can i find ONLY first two number that start with "39"?
I tried with
^(.*?)39
but it deletes the second match also. Example:
393905598787
393400048083
I want:
3905598755
...
1
vote
3
answers
85
views
Is there a better way to write this incredibly long regex, or perform this error check?
I was trying to find a way to error/style correct a non-standard custom menu file from a decade old video game that I was working on in Notepad++ and this was the best I could come up with.
The below ...
-3
votes
1
answer
57
views
Notepad++ replace using variables [closed]
In Notepad++ I need to find every instance of the following:
<ApplicationPath>F:\software\VARIABLEA.zip</ApplicationPath>
with the following:
<ApplicationPath>F:\Games\VARIABLEA\...
-1
votes
1
answer
102
views
Printing to PDF in Notepad++ from command line
I want to print some xml files to PDF (using Microsoft Print to PDF) from the command line. In order to preserve syntax highlighting, I would like to print via Notepad++. The only batch print command ...
0
votes
0
answers
25
views
Notepad++ User Defined Language not saving with extension
I set up a User Defined Language in Notepad++ and it correctly loads that syntax highlighting if I open a file with the matching extension. However if I try to Save As, it defaults to Plain Text and ...