• 0 Votes
    4 Posts
    337 Views
    pgibeP

    @Alan-Kilborn, @PeterJones Thank you, I think that Issue#12079 properly describe my problem.
    Given that, I can close my request.
    Regards,

  • Separator

    5
    0 Votes
    5 Posts
    396 Views
    Mario CastroM

    Thanks Alan

    You rock!

  • Search and Replace

    7
    0 Votes
    7 Posts
    450 Views
    Alan KilbornA

    @Neil-Schipper

    Yes, indeed, it may very well be the simpler case. I was fooled because so often these go the other way. :-)

  • Show printable ASCII characters only

    12
    0 Votes
    12 Posts
    897 Views
    Alan KilbornA

    @Terry-R said in Show printable ASCII characters only:

    Apparently his edits are benign

    Even “benign” edits are annoying because I get a notification that there is something “new” to read. And even if such edits are “harmless”, they should be documented (like Peter will do) with an “EDIT: …” at the bottom explaining what was done.

    If an edit is so harmless that typing an “EDIT: …” explanation at the bottom would be silly…WHY even make that edit in the first place? Leave old postings the way they are (find better things to do with your time).

    It means someone can answer with a solution only to find the specifics of the request have changed in the intervening period.

    I agree and have made these feelings known, but no further changes came from that.

  • Space instead of TABS Issue, when opening files via SFTP

    3
    0 Votes
    3 Posts
    265 Views
    Alan KilbornA

    @schlaubstar said in Space instead of TABS Issue, when opening files via SFTP:

    on my notebook the opened python files show a line Ending of LF only, while it shows CR+LF on my stationary PC

    Are you sure you are opening the same file in both cases, not a duplicate in one case?

    Because, this wouldn’t depend upon any Notepad++ setting, it would depend only upon file content.

    Raspberry Pi is a Linux file system, so if the file you are opening originates there, it would have LF line-endings. But tools that might bring it to your PC for editing might convert line-endings…which would I’d think be restored when the file is updated to the Pi. But…this is just how I’d think it would work (in other words, could be wrong).

  • Manual: chapter Search

    10
    0 Votes
    10 Posts
    462 Views
    Lycan ThropeL

    @Alan-Kilborn ,
    Actually, the wording of that command only verifies that it is already a token. It is simply adding a Style data element to it’s data such as it’s position in a document. :)

  • 0 Votes
    5 Posts
    2k Views
    guy038G

    Hello, @brent-parker, @terry-r, @neil-schipper and All,

    So, @brent-parker, given this INPUT text :

    I run this regex test " but I suppose it will be OK ". However, I must verify this assertion. We went out for a walk in the country-side. " On the way back, we can take some cakes ". We often come to this store. They are going to the movies tonight. " They hope it will be interesting ". They had, indeed, been disappointed the previous time!

    Use this regex S/R :

    SEARCH (?x-is) " .+? " (*SKIP) (*F) | \b (?: ( I ) | ( We ) | ( They ) ) \b

    REPLACE (?1Guy)(?2Bob and me)(?3The group)

    And you’ll get your expected OUTPUT text :

    Guy run this regex test " but I suppose it will be OK ". However, Guy must verify this assertion. Bob and me went out for a walk in the country-side. " On the way back, we can take some cakes ". Bob and me often come to this store. The group are going to the movies tonight. " They hope it will be interesting ". The group had, indeed, been disappointed the previous time!

    Notes :

    The search regex uses a non-common modifier (?x) which enables the free-space mode for a better identification of the regex parts

    The search regex uses a special structure, called Backtracking Control Verbs. This specific form (*SKIP) (*F) can be understood as :

    What I don’t want (*SKIP) (*F) | What I want

    We do not want everything between double-quotes and we do want to replace some words with an alternative text, accordingly !

    So, any word I is changed by Guy, any word We is changed into Bob and me and any word They is replaced by The group, when they all are not found within double-quotes zones ;-))

    Best Regards,

    guy038

  • Using sets to find A-Za-z plus the # and - chars ..?

    23
    0 Votes
    23 Posts
    1k Views
    guy038G

    Hello, @peterjones,

    In my previous post, I forgot to mention the ^ character, which has a special meaning within a Character class !

    So, here is an updated version of my previous post :

    If we consider the following CHARACTER CLASS structure : [.......] 123456789 The POSSIBLE location(s), in order to find the LITERAL character below, are : LITERAL Character [ : POSSIBLE at any position, BETWEEN 2 to 8 POSSIBLE at any position, BETWEEN 2 to 8, if PRECEDED with an ANTI-SLASH character LITERAL Character ] : POSSIBLE at position 2 ONLY POSSIBLE at any position, BETWEEN 2 to 8, if PRECEDED with an ANTI-SLASH character LITERAL Character - : POSSIBLE at position 2 POSSIBLE at position 8 POSSIBLE at any position, BETWEEN 2 to 8, if PRECEDED with an ANTI-SLASH character LITERAL character ^ : POSSIBLE at any position, BETWEEN 3 and 8 POSSIBLE at any position, BETWEEN 2 to 8, if PRECEDED with an ANTI-SLASH character LITERAL Character \ : POSSIBLE at any position, BETWEEN 2 to 8, if PRECEDED with an ANTI-SLASH character

    And I suppose that @alan-kilborn could add :

    To use a “literal ^” in a character class: Use it directly like any other character, e.g. [ab^c], but right after the opening [ of the class notation ; “escaping” is not necessary (but is permissible), e.g. [ab\^c]

    Best Regards,

    guy038

  • 0 Votes
    7 Posts
    3k Views
    Alan KilbornA

    @DesAWSume said in How to match all content between two XML tags except if a certain tag occurs between them?:

    I only want to capture the <description> tag only in
    <ErrorItem></ErrorItem>

    See HERE.

  • Help User Manual Search Box

    14
    0 Votes
    14 Posts
    715 Views
    José Luis Montero CastellanosJ

    @PeterJones
    I tell you that I have the user manual translated into Spanish, and the only thing I need is to solve the search box. That I plan to maintain! if I CAN make it :) I send you a couple of snapshots.
    I hope to be able to send it one day… You can see some innovations:

    notepad++.png
    I managed to organize the flags in columns and alphabetically.

    banderas.png

    That’s why I do all these queries… But just like others I’m still raw with hugo site.

    :-) Good luck in your work :)

  • NPP not saving my notes & can't install plugins

    16
    0 Votes
    16 Posts
    788 Views
    PeterJonesP

    @ILoveSkilledCoders said in NPP not saving my notes & can't install plugins:

    @PeterJones said in NPP not saving my notes & can't install plugins:

    @ILoveSkilledCoders ,

    If you have Settings > Prefences > Backup > Simple Backup , it will

    6ea37346-9362-44d9-a26d-b6387337403b-image.png

    So if you don’t want .bak files, turn it to None

    Ok, that’s where it comes from. Do you have a link that details the differences between simple & verbose?

    The link to the specifics was found in the FAQ I already linked you to you that you claimed you would read.

    d04198bc-35e3-4054-96ad-91476dc7afbf-image.png

    The auto save isn’t working for me.

    Then you didn’t have it set up correctly. Are you sure you understood what you read in the FAQ?

    I had to redo my HD twice (this is the 2nd time it’s happened) & the auto save which is set to 5 mins., isn’t saving.

    Could you show us a screenshot of the setting that you believe is setting the auto-save to 5 minutes?

    Once I skimmed that link you gave me, I realized I had already gone into those settings ages ago. I just didn’t remember.

    You only skimmed the FAQ, rather than reading it? No wonder you’ve given yourself a false impression.

    I lost a whole days worth of updates to not just one note, but several.

    If your data is important enough that you complain when it’s lost, it’s important enough to invest a few minutes to read and understand the FAQ and the sections of the user manual that you have been linked to.

    And even in the backup folder (once I finally got access to that folder on the old HD b/c it was locking me out) there was no more recent note.

    That’s not very specific. There are three separate “backup” folders possible, one for the Notepad++ session-snapshot-and-periodic-backup and one for the Notepad++ backup-on-save and one for the AutoSave plugin.

    And I just checked C on the new HD b/c I had this for like 3 days before having to redo Win, & there was only one note there, but I’m not sure if I had gone into the backups area, but then why is there one note there?

    Where “there” is one of three places that you apparently haven’t disambiguated in your mind. If you give us specifics, including what all your notepad++ backup and auto-save backup settings are, we might be able to tell you what went wrong. If you just complain at us without giving us anything useful, then the best we can do is tell you to read the documentation that we’ve already linked and to give us specifics if you want more help.

    If it was set & I assume it’s the default for simple, right? Than all of the notes should be in there.

    The default is not set to Simple Backup, except for one or two versions (the developers tried setting Simple Backup as default for a version, but the number of complaints of “.bak files are cluttering up my hard drive” dwarfed the number of complaints from people who couldn’t figure out how to turn on simple backup despite all the documentation, so the developers switched it back off by default).

    I just don’t understand why it’s not working.

    Oddly enough, I would suggest reading the documentation when trying to figure out settings. And providing details rather than nebulous, unsupported assertions when asking for help.

    Good luck.

  • Find and copy a specific line from a file

    3
    0 Votes
    3 Posts
    415 Views
    Mobil MeisterM

    @Terry-R oh my god,
    actually completely logical, i just didn’t have the idea. thank you. notepad++ is really a super tool.

  • No Compare function box in tool bar!

    7
    0 Votes
    7 Posts
    837 Views
    XianglanAnX

    @Alan-Kilborn Thank you for your reply.

  • in a list, remove all text before character

    6
    0 Votes
    6 Posts
    5k Views
    Alan KilbornA

    @datatraveller1

    Terry is right, but the shorter version is that it saves me from having to write my response this way:

    Find: ^.*?-
    Replace: nothing
    Search mode: Regular expression
    . matches newline checkbox: Unchecked

    As you can see, many less characters to type for me to simply use (?-s)

    BTW, for those that don’t know, if the . matches newline box is checked, it effectively puts a (?s) at the start of whatever regular expression you supply in the Find what. So if your regular expression supplied is (?-s)^.*?- it becomes (?s)(?-s)^.*?- which is really just (?-s)^.*?- because the (?-s) part “undoes” what the leading (?s) does.

  • Special characters not showing on some file on some computer

    17
    0 Votes
    17 Posts
    5k Views
    Paul WormerP

    @Alan-Kilborn said in Special characters not showing on some file on some computer:

    @Paul-Wormer

    I presume you are taking screenshots using Win+Shift+s keycombo?

    Yes.

  • simple UDL highlighting Apostrophes & Quotation Marks

    3
    0 Votes
    3 Posts
    380 Views
    Christoph De WolfC

    Hello,

    This does exactly what I want, thank you very much.

    greetings,

    Christoph

  • Need Notepad++ to install on Windows 2000

    2
    0 Votes
    2 Posts
    898 Views
  • BUG with characters in extended character set

    12
    0 Votes
    12 Posts
    831 Views
    Andrew McPA

    @Alan-Kilborn ah!!! Cool, well let me rephrase…your short term memory is great :)

  • Apply macro to a selected characters in a file

    2
    0 Votes
    2 Posts
    303 Views
    PeterJonesP

    @Rom-Ortiz-Toro ,

    Any operation that works on the active selection that can be macro recorded will already work as you describe. Any operation that does not take into account the active selection is not likely to be able to work in the way you describe.

    As a first level of improvement, you could automate the copy/new/paste/actions/copy/paste sequence into one macro, rather than doing the preliminary and cleanup copy/pastes outside the macro.

    Then, depending on what the actions are, you might be able to limit them to only be in the selection, rather than the whole document. But since you’ve given us no hints as to what it might be doing, we cannot comment on whether that’s feasible for your particular macro.

    Finally, there are actions that are too complicated to turn into macros. For such actions, we often suggest switching to one of the scripting plugins for Notepad++, like PythonScript; those plugins allow you to use a programming language to automate Notepad++ to your heart’s content: they have full access to the contents of the open files as well as being able to trigger any of the actions you can take from the GUI.

  • Issues with Menus in Notepad++ and Windows 11 (OS Build : 22621.819)

    2
    0 Votes
    2 Posts
    186 Views
    PeterJonesP

    @Chuck-Rheault-0 ,

    I’m not sure I fully understand what you mean by “boxes around every menu item”: a screenshot might be helpful for us to understand the problem. I have never seen a problem with menus being to narrow or not appearing…

    If you have other programs displaying similar symptoms, then I’d hazard a guess that it’s something with the particular update of Windows 11, and not anything that Notepad++ can do anything about. (My home PC, which is Windows 11, has been prompting me to get the next update; I had been planning on doing it during Thanksgiving break next week, but maybe I’ll continue to hold off on doing that, if it’s breaking things like Notepad++.)