Questions tagged [notepad++]
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.
2,890
questions
1
vote
2
answers
371
views
Regex: Change the order of the lines from the last one to first one (multiple files)
I have this lines (sentences) that must be changed in the opposite direction, from 40 to 1 (and vice versa) (into 125 files, that is why I need a regex solution) for multiple files.
1. I go home.
2. ...
0
votes
1
answer
906
views
How can I remove a timestamp with text after it in Notepad++?
Tried \d and such but I'm a new user to Notepad++
[\d{2}:\d{2}:\d{2}] [Server thread/WARN]: Command Block chain tried to execute more than 0 steps!
Tried this currently but says it cannot find it.
...
1
vote
1
answer
203
views
Notepad++ XML - Delete Tags Conditionally Based on Child Tag Content not containing certain content
I've got a large xml file where i need to remove some child elements if they do not contain the right start of a the content of a nested child element.
My xml file looks like this:
<product>
...
0
votes
4
answers
6k
views
Multiple line Find & replace - Notepad++ , regex, copy a text from a particular line and replace in another line
I'm facing a herculean task in multiline find and replace (explained in separate parts).
The solution I seek involves using regex in Notepad++ with either the built in Find & Replace or with the ...
2
votes
2
answers
346
views
Regex: Find those particular html tags that contain these words (strings)
I have this tags:
<span class="text_obisnuit2">* Notă:</span>John Wells - <em>My Dreams</em>, Albatros Books, 1986.</p>
and this one:
<span class=&...
1
vote
2
answers
429
views
How to add new line based on existing word in Notepad++ Using Regex
I am looking to add a new line based the existing word in Notepad++ using regex.
For example , I have below files with multiple create table statements and i need to add "drop table if exists &...
1
vote
2
answers
342
views
Regex: Put comma in its place after replacing the content of one html tag with the content of another html tag
I have these 2 html tags:
<title>The Secret Is Elsewhere</title>
<meta name="keywords" content="love, find, car, diamond"/>
With the regex below I can replace the ...
1
vote
4
answers
3k
views
How do I change the url hover link color in Notepad++
I'm using the latest version of Notepad++ (7.6.3), and I would like to change the color of the hyperlinks when I hover over them.
I found this wiki about clickable links, but it seems the information ...
19
votes
3
answers
15k
views
notepad++: How to return to previous position? without mark than position previously
If I am editing a large document in notepad++,
Then, I press Ctrl+End and the curso goes to the end of the file.
Is there any method to position the cursor in the previous position?
0
votes
2
answers
2k
views
How to find-and-replace text with regular expression
I have multiple lines like this(with multiple random numbers):
value:"200 text.text.text.text
value:"235437 text.text.11.text
value:"12835 text.text.17.text
value:"347783 text.text....
0
votes
1
answer
208
views
How to do this in Notepad++?
I have thousands of lines that look like this:
Username | Password | Account Status | Region | Email | Summoner Name | BE | RP | RP Refunds | Level | Curr Rank | Prev Rank | Champs | Skins | Last ...
0
votes
2
answers
516
views
Regex: Find/Delete all these specific words from one specific html tag
I have this html tag <p class="text_obisnuit2"></p> In this tag there are some words (other tags) such as <strong> or </strong>. Also <em> or </em>
...
0
votes
0
answers
92
views
Attempting to delete executable shows error that the file is in use by that same executable
I've been doing some C++ programming in Notepad++ and, seemingly randomly, updates to the code did not modify the output, so I opened it up in Windows' file explorer to delete the executable, however ...
1
vote
1
answer
99
views
Search for colors
I'm looking for a way to find all CSS colors (HEX) in a directory recursively, I don't know the colors i'll be looking for so I want a way using notepad++ or any linux command to find strings that ...
5
votes
3
answers
1k
views
Regex to display the initial letters of the sentences replacing the remaining letters with asterisks or dots
I try to find a regex to replace text in this format
balle spaziali
bambole e botte
calda emozione
fuori di testa
giovani diavoli
ragazze vincenti
ore contate
in this way
b.... s.......
b...... e b......
3
votes
2
answers
3k
views
Notepad++ Modifying a string with same string plus additional text multiple times
a similar question was asked on the below thread and i was able to get it working partially
Notepad++ find and replace within a constant string
didn't wanted to create a new question as wanted to ask ...
2
votes
3
answers
9k
views
How do I filter an XML file to find all of one type of tag with any invalid values?
I was messing around with notepad++, but seem to find an easy way to do this. I think grep might work, but I an not totally sure how.
I have a file, that has certain tags, I want to find all of the ...
2
votes
4
answers
5k
views
Notepad++ auto completion does not work
My Notepad++ autocompletion does not work properly.
I set Preferences > Auto-completion > HTML tags to be checked.
But nothing happens. After I typed both tags, say <h1></h1>, the ...
1
vote
2
answers
1k
views
How to add text to the end of every url in notepad++?
I have a big text file that contains urls that all begin with the same domain name but vary in the rest of the url. Is there any way to search for the line beginning with http://test.domain and insert ...
0
votes
1
answer
2k
views
.txt file context menu > Open is opening Registry Editor
When I right-click .txt files and choose Edit, the file is opened in Notepad++. But when I choose Open (or double-click the file), I expect the same thing, but the Windows registry editor (regedit.exe)...
0
votes
1
answer
2k
views
Customize Notepad++ XML Tools plugin shortcuts
I use the XML Tools Notepad++ plugin and its command "Pretty print", however I'd like to change it's shortcut. I was not able to find the command in the "Settings > Shortcut Mapper......
40
votes
7
answers
67k
views
How do I add a number at the end of every line in Notepad++?
I have 23,000 lines, and I need to add the number 1 at the end of every line.
How can I do this?
Right now:
[line1]TEXT
[line2]TEXT
What I would want:
[line1]TEXT1
[line2]TEXT1
0
votes
1
answer
281
views
Mass Replace commenting code with notepad++
Notepad++
Im looking for a Way to Mass Commenting (and the code to undo it) a block of text. Ignoring other parts of the same file; but at the same time respecting some differences in each block.
...
4
votes
2
answers
3k
views
Regex: Select text/string between symbols that contains another symbol (tags that contains specific string)
I want to select all text between => and => only if contains [ or ]
I love you => predici-video [date] => between myself and her.
so, only this => predici-video [date] =>
0
votes
1
answer
1k
views
Regular Expression to match pattern
I am trying to find all matches for the two following lines:
:Potato: Potato(3) :
and
:Tomato: 11
Of course these words (Potato,Tomato) can be random words and the numbers from 1-99 .
Any help ...
0
votes
3
answers
8k
views
Beautify columns (alignment)
I'm using notepad++ and I'm wasting time aligning my columns, is there a way to go from this:
hello a blabla
world! b blabla
asda c blabla
fasda d blabla
To this:
hello a ...
0
votes
1
answer
155
views
How to format VBA code to 80 columns?
I have some VBA code where lines are long and want to send it somewhere, where is (not 100% strict) limit 80 chars on line.
VBA allows to create to break line of code by placing " _" before &...
0
votes
2
answers
144
views
How do I add text to each line with different content in Notepad++?
I have the following text :
[email protected]:Golden-Ball
[email protected]:SilverBall
[email protected]:Copper_Ball
[email protected]:Encourage
sissleib6930@stu....
0
votes
2
answers
460
views
How do I delete characters after 10th character from xml tags Notepad++?
I have a xml file with repeated xml tags where I want to trim the string length to 10 characters
Data:
<Item>
<ItemNumber>1</ItemNumber>
<Description>Lorem Ipsum Lorem Ipsum<...
2
votes
1
answer
349
views
Regex: Select the particular html tag that contains this word, and that has nothing left after it
I have these two tags:
<p class="text_obisnuit2">Leadership: Do you love me?</p>
and this one:
<p class="text_obisnuit2">Leadership: </p>
So, I have more ...
1
vote
1
answer
2k
views
windows 10 - how to associate "edit" for .cmd files to notepad++ in context menu?
I would like to be able to right-click on a .cmd file in win10 (or windows server 2019), choose edit and have notepad++ open the file. I have a mixture of file types (as in 'nix text files) that are ...
105
votes
4
answers
32k
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 ...
1
vote
1
answer
639
views
How I can mark lines between two text strings using regular expressions option in Notepad ++?
I am trying to simply mark and replace all the lines in in Notepad++ file enclosed by two words/text e.g. PERMI & EQUALSI (see attached figure). How I can do that using regular expressions ...
0
votes
4
answers
19k
views
How to remove what are apparently control characters in notepad++?
I have some entries in notepad++ ive never seen before. I have highlighted squares on many lines with SGCI SSA PU1 PU2 MW and SPA within which if copy/pasted here all translate to/become ``
I'm ...
0
votes
1
answer
3k
views
Notepad++ to enter new line and not get indented hotkey?
Auto-indent in Notepad++ sometimes turns out to be very annoying - e.g. when we work with text/note file.
Very often do I want to enter a new line and the cursor is NOT indented i.e. at the beginning ...
0
votes
2
answers
296
views
notepad++ regex does not replace but deletes
I can't make a simple replacement with notepad++ regex.
I need to put newline after the line that starts with a number.
5. Rock
Capitolo 1 – Il camion
This regex deletes the first line, instead of ...
0
votes
2
answers
398
views
Adding a specific line after finding a pariticular line
I have a huge codebase containing 400-500 files. In most of the files we have these kind of lines: <cfcatch type="any"> / <cfcatch type="database"> / <cfcatch> ...
21
votes
2
answers
36k
views
How to know cursor position index in an editor
I'm working with an HTML file, and I need to know my cursor position index in the overall file.
In Visual Studio, I can see the line number and column number in status bar.
In Notepad++ too, in the ...
0
votes
1
answer
30
views
Remove "example" between ahref string
Can you guys help me with this?
I know there exist a ctrl + alt and then select but i want to use a code something like(example: (<a) "[0-9a-f-]")*
<a "Testt 22" href="...
2
votes
1
answer
125
views
Append line by line text
I've two files one with content -
Bob
Mike
John
Other with content -
Sesek
Wang
Bel
I want copy content of second file and append them line by line in first file like -
Bob Sesek
Mike Wang
John Bel
...
0
votes
1
answer
273
views
How to add default extensions with the Notepad++ Run... feature?
I regularly use notepad++ for editing my AutoHotkey scripts. I like to use the notepad++>Run feature to test them and validate them.
It works good but here's what would take it to the next level -- ...
0
votes
2
answers
287
views
How to find more than 7 specific symbol in a line?
i have some text data in Notepad++ as below, I want to find the rows which having greater than 7 ; (semicolons) and after the 7th semicolon the line should move to next line.
sdkjfkdf;asdkjfhkhsdf;...
2
votes
1
answer
2k
views
Remove multiline comments from Notepad++ using regex
I have some SQL Code which has lot of comments e.g.
/*
This is
my
multiline comment */
How can I remove them?
31
votes
5
answers
11k
views
How can I remove lines that begin with spaces in Notepad++?
I need to remove lines that begin with spaces (the entire line, not just the spaces)
Here is an example of the file I'm working with:
41. 415607DB (AV-2011) 2007-06-23 (1D0703A2) (572D8DEC)
42. ...
1
vote
1
answer
1k
views
How to sort a row of text in Notepad++
So I have about 100 - 200 words in one single row, in a *.config file that I need to sort in alphabetical order.
I've seen many posts of how to do so if the text is in lines but not if it is all in ...
1
vote
4
answers
39
views
Text found in Notepad++ using RegEx extends too far
Let's assume the following text
a=1
b=2
x=1
---------
a=1
b=3
c=3
x=2
---------
a=2
b=5
x=3
... and so on, many blocks starting with a=, ending with x= and something in between
I would like to ...
0
votes
1
answer
809
views
How can I remove everything beyond this 10 character alphanumeric string with notepad++ using regex
I have a long text file with some garbage data I need to clean up.
The entries are as follows.
American Chopper 0x4156003D American Chopper 5849
American Chopper 2: Full Throttle 0x4156004F ...
5
votes
0
answers
430
views
Files with long filenames appear as empty
I'm not too familiar with Windows, so please bear with me.
I have a folder with several files with very long filenames, that can be listed normally, but if I try to open them with any Windows ...
1
vote
1
answer
10k
views
Batch, The system cannot find the batch label specified
I have a batch script with a function called :DispLogo in it, however, when I call it states The system cannot find the batch label specified: DispLogo. It is 100% there. I've tried renaming it with ...
2
votes
1
answer
3k
views
How to move the next line starting with ";" move to previous line end in notepad++
I have a text as the below one in notepad++.
I want move all the lines starting with ";" to previous line, after its end.
Input:
kskdjhs;sdkjfhkkdsf;eueue
";"";"dkdkjfhgf;...