• 0 Votes
    24 Posts
    33k Views
    Eugene TenenbaumE

    @Alan-Kilborn,
    Since when making Notepad++ resistant to file saving failures does not add value to it? Since when making products less prone to failure by any legal means possible is not adding value to them? Since when an employee who does one thing cannot do another, easier one? Is it beneath the dignity of a software developer?

    Do you subscribe to the famous line from “Oliver Twist”: “Please, sir, I want some more”? We do not live in the 1830s of Charles Dickens anymore. I found a solution and generously shared it with all. Do you want more charity from me? Didn’t I do enough already?

    Good luck with starting thinking, like businessmen aiming at perfecting their products, esp. by easy contacting someone to contribute to that in his own interest and not doing it by themselves. Too much?
    –Eugene

  • Comments in function list

    9
    0 Votes
    9 Posts
    855 Views
    PeterJonesP

    @Demetrio-Foti said in Comments in function list:

    I’d like just to know if the fix is planned in the very next releases or not

    It is not planned, no. The bug has been known about for at least 7 years, so if it’s been around that long, it’s not likely to get fixed in the near future.

  • Replace-All can only replace up to 2046 characters long

    6
    0 Votes
    6 Posts
    780 Views
    Jim HarrisJ

    As @mkupper said, anchors and regular expressions are the magic spells that I use to untangle lines - or even files, (like blobs of downloaded bank data) - that are hopelessly mangled together.

    Depending on how mangled the data is, it may take several tries - with a number of mistakes - before you get things the way you want them.

    It can be a process and don’t forget to make periodic backup saves in case you have to “undo” a search-and-replace.

    In my case I use Notepad++ to untangle downloaded bank data for tax purposes and, (depending on the size of the file and how mangled it is), it can take days to complete.

    Be patient. Print out a regular expression cheat-sheet if you need one. (I did) And don’t give up even if it seems like you’re going backwards.

  • posting help

    5
    0 Votes
    5 Posts
    669 Views
    Alan KilbornA

    @Bob-Smith said in posting help:

    so I could share pictures

    If you’re trying to share screenshots illustrating your Notepad++ problem, just copy them to the clipboard and paste directly into your posting.

  • NON utf-8

    6
    0 Votes
    6 Posts
    1k Views
    CoisesC

    @dr-ramaanand said in NON utf-8:

    I have the same problem. How to make those Chinese and other characters readable again like before?

    Based on the original poster’s comment, I don’t think it is the same problem. The original poster apparently wanted to identify characters that wouldn’t save properly in non-Unicode files so he could remove or replace them. My solution is only partial (it doesn’t take into account what non-ASCII characters are available in his default code page, and therefore perhaps would not need to be removed), but we’ll have to wait to see if he responds to know if he needs more ideas.

    I recommend you post this as a new question, as it appears to be different from the problem under discussion here. In any case, we will need more information. Since you write “like before,” part of that information should be what changed between “before” and “now.” Please be sure to include the information from ? | Debug Info… | Copy debug info to clipboard when you post.

  • 0 Votes
    33 Posts
    20k Views
    Maria BenichM

    @Maria-Benich Thank you! It worked perfect!

  • UI hangs when doing a large search-in-files

    3
    2 Votes
    3 Posts
    615 Views
    Alan KilbornA

    @James-John-McGuire

    Maybe give an example of the search you’re attempting.
    Probably only knowing the circumstances better can others offer advice on how to possibly improve things for you.

  • How to find out what txt files were open in the last session?

    10
    0 Votes
    10 Posts
    2k Views
    Richard HydrickR

    First, open the Sessions.xml within the below folder and it will show you all the files that were open. In my case it was just before my computer crashed as I just recovered from a failed TPM on my computer but the drive was still good.
    (*C:\Users\Username\AppData\Roaming\Notepad++*)

    If you can gain access to your old drive copy the folder backup and move to your new instance of Notepad++ copying to the same file location above, then select all documents within and open with Notepad++ and you will have all your saved and unsaved notes.

    Hope this helps.
    Richard

  • Odd (?) caret placement with auto-indent

    18
    3 Votes
    18 Posts
    2k Views
    CoisesC

    @Alan-Kilborn said in Odd (?) caret placement with auto-indent:

    In theory I would turn basic auto-indent on for “normal” text files, to get the benefits of a “fix” for such files. However, for Python and C++ files, I want/need advanced auto-indent. But, I can’t do this (again, it’s global: basic OR advanced).

    The code for Auto-indent: Advanced splits into three cases: C-like languages, Python and everything else; everything else uses the same code as Basic. The same change I proposed for Basic could be made there.

    The reason I separated the two cases is that what I propose doing to Basic is simple and straightforward. I want to ignore the configured indent settings and just duplicate the indentation of the previous line. I was able, with reasonable confidence, to devise a commit which I believe implements that without causing side-effects.

    The code for Advanced (except when it falls back to Basic) is far more complex, and of course it can’t ignore the indentation settings. The reason I didn’t suggest applying my change for Basic to Advanced when it falls back to Basic is that Advanced doesn’t just copy the existing indentation, it recomputes it, whether it is changing or not, according to the indentation settings (tabs or spaces). I thought it might be bizarre to have Auto-indent: Advanced sometimes change the indentation style to match the configuration and sometimes not.

    I suggested something as to how Auto-indent: Advanced could be changed to fix the specific problem you mentioned, but I did not give an example commit, because I have not yet been successful at creating one. So far, for each attempt I’ve made I’ve quickly found some unwanted side-effect.

    Part of the difficulty, also, is that after some experimentation with the unmodified version, there are some corner cases for which I do not follow the logic of the current behavior (or if some of that might be unintended). Example:
    void func() { return; }
    Start with that in language C++. The results of placing the caret after { and pressing Enter, then placing the caret after ; and pressing Enter are not the same as the results of placing the caret after ; and pressing Enter, then placing the caret after { and pressing Enter. In the latter order, the blank in “; }” is not absorbed; however, if you start with the line indented one level and do the same thing, the blank is absorbed. Either way, the caret winds up at the beginning of the line, as per your initial complaint.

  • Shortcut or menu path to "Rotate to right/left"

    18
    1 Votes
    18 Posts
    5k Views
    deleeleeD

    @Ekopalypse said in Shortcut or menu path to "Rotate to right/left":

    @deleelee

    UPDATED VERSION

    from ctypes import wintypes, WinDLL from Npp import notepad class ViewRotator(): def __init__(self): self.LOWORD_LEFT = 2000 self.LOWORD_RIGHT = 2001 self.WM_COMMAND = 0x111 self.toggle_rotating_direction = False self.npp_hwnd = WinDLL("user32").FindWindowW(u'Notepad++', None) self.splitter_hwnd = WinDLL("user32").FindWindowExW(self.npp_hwnd, None, u'splitterContainer', None) self.send = WinDLL("user32").SendMessageW self.send.argtypes = [wintypes.HWND, wintypes.UINT, wintypes.WPARAM, wintypes.LPARAM] self.send.restype = wintypes.LPARAM # LRESULT def rotate(self): if not notepad.isSingleView(): if self.toggle_rotating_direction: self.send(self.splitter_hwnd, self.WM_COMMAND, self.LOWORD_RIGHT, 0) else: self.send(self.splitter_hwnd, self.WM_COMMAND, self.LOWORD_LEFT, 0) self.toggle_rotating_direction = not self.toggle_rotating_direction if not hasattr(notepad, "rotateSplitView"): notepad.rotateSplitView = ViewRotator().rotate notepad.rotateSplitView()

    Wowsers!!! That is perfect. Thank you so much.

  • ChatGPT failed to help me replace....

    3
    0 Votes
    3 Posts
    641 Views
    Pulamea PulataP

    @Coises I found the solution before my post was even allowed by the moderation team , I make websites my client is an official partner of x website and is allowed to sell their products , and is way faster to scrape them and import them than ask them for the exported products since the sites are made in different platforms

  • separate to a NEW file

    4
    0 Votes
    4 Posts
    386 Views
    PeterJonesP

    @Mostafa-Kamal ,

    if it’s a one-time action, @Terry-R’s suggestion is spot on, and you don’t need to read my post.

    However, if it’s an action you are going to take a lot, I would suggest recording a macro:

    Macro > Start Recording Search > Mark FIND WHAT: \d{3}$ (this assumes it’s always a digit, like in your example; if it is just the last three characters, whether it’s digit or not, then .{3}$ instead Uncheckmark Bookmark line Checkmark Purge for each search Mark All Copy Marked Text Clear all marks Close File > New Edit > Paste Macro > Stop Recording Macro > Save Current Recorded Macro Give it a name that makes sense to you (CopyLastDigitsToNewFile or something) Give it a keyboard shortcut if desired.

    From now on, you can run the macro to copy those last digits/characters to a new file.

  • Trouble downloading Notepad++

    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    @Alex-Martin said in My First Taste Of HTML Code:

    How on earth do you download Notepad plus plus?

    You go to the official downloads page, find the most recent version (at the top, currently v8.7.1), and on the page for that, click the “installer” link (which for v8.7.1 is here). Once you have the installer, you have to run it.

    Ive tried it 3 times, the last 2 versions, and nothing
    shows up on windows.

    Sounds like user error to me.

    Zed Shaws book ruby the hard way, page 7. Stuck on 1. Where is the program???

    Finding the table of contents for that book online, and seeing that it’s the “getting things setup” instructions, I am assuming it suggests Notepad++ (which is awesome). But I have no idea what instructions it might give, or why you are having difficulty following those instructions.

    BTW: Your question had nothing to do with the blog post you replied to; you should have created a new question in “Help Wanted” instead of replying to an unrelated discussion. As a result, I moved it from there to here.

  • duble space like tabulate add/delete

    2
    0 Votes
    2 Posts
    233 Views
    dr ramaanandD

    @kuzduk-kuzduk one of us can help you do that with a regular expression (add or delete anything with one click) if you mention the beginning of these paragraphs and if they are unique.

  • Notepad++ Adding Strange text after pasting

    10
    0 Votes
    10 Posts
    4k Views
    Testing TesterT

    @Dee-Neely Thank you Dee, for pointing to this plugin. Most likely it was activated unintentionally by pressing Ctrl+Shift+C.
    Cheers, Ronnie

  • UDL: Number groups with negatives

    3
    1 Votes
    3 Posts
    309 Views
    P

    @PeterJones Looks like that solved the issue, thank you!

  • 1 Votes
    12 Posts
    1k Views
    gamophyteG

    @Terry-R Excellent!! Thank you!

  • How to add a missing line, based on part of the previous line

    13
    -1 Votes
    13 Posts
    935 Views
    dr ramaanandD

    @guy038 Oui, merci beaucoup!

  • Question about programming language

    2
    1 Votes
    2 Posts
    262 Views
    PeterJonesP

    @IronWalkers ,

    Language > I > INI file

    a97dc2ec-7270-424f-9454-73c8ae1f75c8-image.png

    Though if you have any = in the “textlines under the [name]”, the = will be red and the text to the left will be blue italics (in the default styerls.xml theme; your selected/customized theme may use different colors):
    335c9aac-8799-4504-9152-0d64750c4dc9-image.png

    If you don’t like the = behavior , then you could define a simple UDL instead of using the built-in INI language: in Language > User Defined Language > Define your language, create a new language (named AI Music or something); leave most as the default settings, but on the Operators & Delimiters page, for Delimiter 1 style, set Open = [ and Close = ], and set the Styler to your preferred color (bold and purple to match INI, or whatever you want).

  • Copy MS Word endnote text to Notepad++

    4
    0 Votes
    4 Posts
    470 Views
    Terry RT

    @Joel-Bridgham said in Copy MS Word endnote text to Notepad++:

    Is there a way to do this?

    You need to understand that the endnote function in MS Word has no parallel in Notepad++. It acts in a similar fashion to a hyperlink. So as the endnote text doesn’t actually appear alongside the words you are copying you will not be able to copy in a single step all that you want.

    I did a few basic tests with endnotes including saving the Word file as “plain text”. Unfortunately it still didn’t place the reference alongside the text that referred to it. So you will need to identify yourself what might work as obviously what you have currently tried will not work. You might even consider creating a Word macro to find each reference link, then copy that endnote and pasting alongside the text that referenced it. Essentially you will be removing the endnotes by moving that endnote to it’s rightful place. As this would be a destructive process I’d say work on a copy of the file.

    Notepad++ is a text editor so obviously works in a completely different way to Word which is a word processor.

    Terry

    PS a quick Google search found this website (a MSoffice forum no less). See here. I will leave it up to you to read, decipher and consider if it is what you want to try. As it’s not about Notepad++, further discussions on this Word function isn’t permitted here. Good luck.