I ran the command regsvr32 “C:\Program Files\Notepad++\contextMenu\NppShell.dll”, it exited with no error codes, but I still don’t have that context menu option.
When you ran that, was it as normal user or Admin? Because it might be that registering the DLL requires elevated Admin privileges.
Also, maybe try the alternative syntax regsvr32 /i "C:\Program Files\Notepad++\contextMenu\NppShell.dll" (as we say in the Manual, “Some users have had more success with one or the other, so if you get an error with one, you may have to try another to get it to work.”)
(And I’ve upvoted your post, so you should have enough reputation to post your image now.)
I have had 25 tabs open in Notepad++ since around 2019, which, due to the program’s auto-reopen feature, I never found the need to save.
You’ve had the same unsaved files for 4+ years?! First, you’ve been lucky to date. Second, I highly recommend changing your data practices – see our FAQ section on the Backup / AutoSave, to figure out how to set things up to be safer so that you’re less likely to lose your data.
That FAQ also has some suggestions for things you can try to recover lost data – including describing the directories that things might be in, depending on your settings; but Notepad++ doesn’t have built-in file recovery, so if the file is corrupt or lost, there is nothing we or Notepad++ can do for you; the FAQ mentions that you might have success using external recovery tools, but we don’t guarantee that will work nor are we experts at their use.
That looks like a binary file. If it didn’t used to be a binary file, then one of a few things happened:
A Windows crash corrupted the files.
You were infected with a virus, and the virus has corrupted your files.
Since you didn’t ever actively save or back up your important data, that data is likely lost in either case, but recovery software (as mentioned at in the FAQ) might be able to find some of your files (though it might be an older version). Good luck.
For the future, I highly recommend following data best-practices, as described in the FAQ, and taking an active role in making sure you don’t lose important data in the future (whether you edit that data in Notepad++ or any other tool; no single tool can guarantee 100% that you won’t lose data due to circumstances outside their control).
I cannot replicate your results when using the exact sequence that I showed, or using a sequence that looks like what you did – I always get behavior like from my screenshot.
Maybe you have a plugin that’s interfering (you haven’t shared your Debug Info – if you had, I could have looked through the names of the plugins and seen if maybe one of them was a likely culprit). Or maybe you’ve got something weird in your Settings > Preferences > Editing or one of the other settings pages (though I haven’t yet found anything that prevents column-paste from working).
However, if I change the sequence, I can replicate your results: If I do the column selection, then paste it somewhere else (in an empty tab, for example), then copy it again not in column-selection mode, then when I paste it in the original location, it pastes it multiple times like you showed, rather than doing a column-paste like I showed. (So again, maybe you have a plugin that is changing a column-selection copy into a normal-mode copy, so it’s stored in the clipboard as a normal-selection instead of a column-selection; I don’t know of any plugins that do that, but I know BetterMultiSelection does some fancy stuff with the multi-select-vs-column-select, so it might be interfering in this case… but that’s just a guess; I don’t use that plugin, and haven’t tried)
update: Nope, I installed BetterMultiSelection into a portable 857, and I still couldn’t get it to mess up; as long as I haven’t done anything else with the clipboard since I did the column-copy, the paste correctly works as a column-paste for me, no matter what I do. Sorry, I am running out of ideas as to why it’s not working for you.
Do you have other text in your file yet? If not, then the “word completion” half of the auto-completion feature will not do anything, because “word completion” requires other words to be in your file.
Do you have a Language set in the Language menu (like HTML or C++ or anything else from that menu)? If not, then the “function completion” half of that feature will not do anything, because “function completion” requires an active programming language to be set.
But I tried many times this…and never find the solution.
That’s because the User Defined Language (UDL) definition just has a simple set of rules that it can make use of, and fancy rules that you described are not possible with UDL alone.
However, using the EnhanceAnyLexer plugin, you can add a regex-based rule in addition to the normal UDL-based highlighting:
Install EnhanceAnyLexer ((use Plugins > Plugins Admin to install that plugin)
Open a file that’s using your UDL
Plugins > EnhanceAnyLexer > Enhance Current Language, which will open EnhanceAnyLexerConfig.ini and create a section in the INI file that matches the name of your lexer. (Example: if your UDL were called “TxoteLanguage”, then the section in the INI would be [TxoteLanguage])
To change the foreground color for anything before a : on a line, you define a regex which matches from the beginning of the line up-to-the-: … For example, to make it red:[TxoteLanguage]
0x000000FF = ^.*?:
If you don’t want the : to be red, but just the text before it, use a fancier regex, which requires a colon after but doesn’t include the colon in the match:[TxoteLanguage]
0x000000FF = ^.*?(?=:)
The INI file includes comments which explain how to set the colors (0xBBGGRR)
There is also a complete module for independent style sheets with the *.css or *.scss extension.
It’s well documented that there’s no styling of embedded CSS in HTML documents. You can read through this (partial) list of open bug reports, the oldest dating from 2005:
There really is no simple way to programmatically switch between completely different lexer modules in the same editing window. Scintilla is basically a synchronous, single-threaded service running inside the application (despite the addition last year of optional parallelization for line layout).
What VS Code and other Textmate-based editors are doing is basically regex matching. The EnhanceAnyLexer plugin for N++ can provide something like that by setting custom styles for portions of the document that match a user-defined regex.
I want to Thank you guys for this. Yesterday I tried Peter’s code first and it worked but there were still some things left behind. Inevitably i found a wayto cancel them out so great work either way.
Terry for some reason My Notepad++ freezes when i used your method to replace all.
Guy038, yours worked perfectly. It got rid of everything and also spaced out the lines. I intended to put them into a word doc and realized that word automatically spaces out lines so it seems I put you guys through a bit more work than needed but those codes got the job done. I won’t be needing further help on this i believe.
If I install the new plugin, will it remove the arrow?
No, it won’t. The ＋ ▼ ✕ are not on the toolbar, they are on the menu bar. They are two different things.
Will there be two arrows since the current one is in the right corner too? Or will the new plugin simply add the ¶ “Show All Characters” feature to the arrow pull-down?
??? I think you are confused. The CustomizeToolbar allows you to show or hide buttons on the existing toolbar, or to add new custom buttons to your toolbar.
Here’s a screenshot of what mine looks like in the righthand side when I’ve got a narrow window, with Customize Toolbar active:
The ＋ ▼ ✕ are all still there. And on the toolbar, since there are more buttons than fit on screen, it uses a » to access any remaining ones.
But none of that has anything to do with hiding the ¶ “Show All Characters” button. If you use Customize Toolbar to hide it, it will use everything else from your toolbar, except it just won’t show that one button.
@Kendall-DeMott For most people, the tabs are preserved when upgrading Notepad++.
The tabs are stored in the Session.xml file and normally the tabs are automatically re-opened when Notepad++ is started. Normally the Session.xml file is in %AppData%\Notepad++.
But, as Notepad++ does not seem to be finding your Session.xml file when upgrading or updating we have to assume that there is something non-standard about your setup or how you are installing/updating Notepad++. It’s going involve a bit of guesswork.
Please post the results of selecting the ? / Debug Info... menu here on the forums.