Open the Replace dialog ( Ctrl+ H )
REPLACE \r\n ( or \n only for Unix files )
Tick the Wrap around option
Select the Extended or Regular espression search mode
Click on the Replace All button
@mere-human said in Need button Back and Forward for placed coursor to previous position:
I think I know what you mean. A similar feature exists in Visual Studio:
Here is a short demo for those unfamiliar with the feature:
You can fill a feature request on GitHub as described in the comment above.
But please, follow the guidelines and provide all the necessary details.
Yes, this feature is very useful. Maybe someone else implements it, I see the application is updated frequently.
What about a hybrid between @Alan-Kilborn & @mere-human earlier selection?
(please excuse the ugly artwork example:
“new 9” updates to the next file for each single press of ‘Yes’ or ‘No’
‘Yes’ saves the file in question, ‘No’ doesn’t and both skip to the next file
‘N’ counts down as Yes or No are pressed
add a balloon hint to ‘Yes to all’ to show the ‘Can be changed in preferences’ hint.
The part I’m not sure about is: What to do when the list of N+1 files has been presented and there are still unsaved files. My first thought is that’s the job of the ‘Close’ dialog as the ‘Save All’ dialog has completed it’s job. My second thought is to ask for ideas.
BTW: I’d rather see ‘Yes to all’ be rewritten as ‘Yes, save all’
Notepad++ v7.9.5 (64-bit)
Build time : Mar 21 2021 - 02:13:17
Path : D:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Home (64-bit)
OS Version : 2009
OS Build : 19043.1165
Current ANSI codepage : 1252
Plugins : AutoSave.dll ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll NppTextFX.dll SessionMgr.dll
yes, by mistake I delete+shift some html files. I manage to recover them with Recuva (or File Recovery), but both version of recovered html files have the same NULNULNUL, as you can see in the print screen
@John-Connor-0 said in text string to column:
So far it’s working Thanks so much!
I’ve just noticed that my solution doesn’t do one of the example lines (sorry missed that on the first look).
Not to worry as these lines weren’t affected by the first regex (regular expression) as there was no pseudo arrow character in these lines. So to edit these lines and have the resulting fields line up with the other altered fields I have the following. Same as before, use Replace and set the search mode to regular rexpression.
Find What:(?-s)^(.:)(.+?) - (Skipped.+)
Important, use the first solution first, then this afterwards otherwise erroneous results will occur. This one places an empty field where the destination drive letter would otherwise be, thus keeping the success or failure result as the third output field.
I wish I know how to use my Python code as to make multiple replacement with Boost regex engine.
PythonScript plugin doesn’t like my Python code…
Doesn’t like your code… Hmm, well the PythonScript plugin that is officially downloadable via Plugins Admin is version 2.x – that one uses Python2 syntax. There’s a beta release of the P.S. plugin that is version 3.x – it uses Python3 syntax.
So you could change your code to use Python2, or you could use the beta plugin.
It is about some parsings and other things for optimize. Anyway, if I have more then 2.000 html files, I cannot wait for each of regex to finnish the job. I must work with some other things in the meantime.
But it will be easier for me, if the such a “Batch Processor” (with multiple search and replace) will work in background, this way I can do other things in the meantime.
Yes, this would be a problem with Notepad++, as it is a single-threaded, one-thing-at-a-time situation.
So, you’re right, for your situation, doing it with a Notepad++ solution is not going to be for the best.
You could always dig up an ASR-33 and use ed or vi. <grin> I realize that’s close to heresy in this forum, but once glass teletypes became a thing, variable width characters weren’t far behind.
IIRC: I tried Fira and other ligature supporting fonts a few years back, and decided that I’d spent TOO many years in the 80 column world where everything was always lined up, and I couldn’t handle the “improvements”.
@Alan-Kilborn said in Adding Ruler below tab bar:
(Disclaimer: But I really don’t know, it’s just a guess).
Having lifted that code from someone else and incorporated my vertical “highlight” all into that plugin - I can safely say “I really don’t know, it’s just a guess” as well :-) !!!
@mladenandonov said in Dark mode icons with custom styles:
Question is where are the icons stored and can I open them in an image editing software such as Photoshop, in order to invert them?
They are compiled into the notepad++.exe binary.
What about portable 8.1.3-RC3?
Because if the portable works but the installed version doesn’t, it’s most likely one of your settings or plugins that’s been corrupted.
For the installed version,
you can disable plugins by running with -noPlugin command-line option
you can try to reset your settings (temporarily) by exiting Notepad++ completely, going to %AppData% folder and renaming Notepad++ folder to something else (maybe Notepad++.bak; the next time you run Notepad++, it should generate “fresh” settings in a new %AppData%\Notepad++ folder. If the fresh settings work but the old settings don’t, you might have to compare the settings, or slowly regenerate the settings manually.
PS: before updating, or before trying any of these experiments, make sure you save any open files
Both plugins and GUP are almost independent of the main Notepad++ application.
They usually are updated separately.
For example, if you take a look at this GUP page, you can see the last update was in May:
The same for plugins (if you’ll look to their corresponding pages).
So, if it’s crucial for you, you can ignore plugin updates if you don’t use them.
If you don’t use the auto update as well, you can ignore GUP too.
Usually, updates to these parts of Notepad++ are mentioned in release notes.
Thank you very much. I really love this software is on top of any other editor, because of many reasons, low resource usage, many plugins, and CUSTOMIZATION! . they didn’t dissapointed me, indeed there is the option to restore the colorful icons. Just go to settings / general settings and choose the “default icons” option. I had a deja vu with MS office products which change their icons and don’t care about users at all. I really can’t stand these modern minimalist icons but fortunatelly NPP enables you to switch back to colorful icons.