• "Copy Failed" when installing/updating Notepad++ localization options

    9
    0 Votes
    9 Posts
    376 Views
    Terry RT

    @PeterJones said in "Copy Failed" when installing/updating Notepad++ localization options:

    but your normal user does not

    I have that as well on my work PC. But when I install I have a higher level account which is used which does have permissions. I assumed here that the same must apply as the image shows other localization files being successfully copied.

    Terry

  • Add "New Notepad++ file" in Windows11 context menu?

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Marc0loide ,

    When Windows 11 creates a “New File” for a plaintext file, it will show the icon that is currently associated with .txt, and will give it the name of the .txt filetype. So if you choose in Windows to always “Open With” Notepad++ for a .txt file, it will generally change the name and icon (in that New File submenu, and in Explorer directory listings) to reflect the default application for .txt. But because Windows is Microsoft, it doesn’t always, and sometimes fights you. It’s a quirk of the OS, and nothing controlled by Notepad++.

  • How to set a global comment style?

    2
    0 Votes
    2 Posts
    549 Views
    PeterJonesP

    @PaulStSmith ,

    The reason you could not find it documented anywhere is that there is no easy way to do that. One of the problems is not all the COMMENTs (for example) have the same style ID or same exact name in every language; and not every language has a COMMENT. (It’s one of the reasons that designing a whole style takes effort, rather than just a couple quick tweaks.)

    If you wanted to change something like that, you could open up %AppData%\Notepad++\stylers.xml and do a series of regex-based search-and-replace like

    FIND = (?i-s)(name="COMMENT.*?fgColor)=".{6}"
    REPLACE = ${1}="XXXXXX"
    SEARCH MODE = Regular Expression

    (that will replace the foreground for any style name that starts with COMMENT with the color XXXXXX of your choice)

    You would then have to do that for every style name that is reasonably consistent throughout all the language style definitions.

  • How can I stop edits being highlighted in printing?

    3
    0 Votes
    3 Posts
    434 Views
    Jonathan SzantoJ

    @Terry-R

    Unbelievably fast response! I think that must be it, and at least I am not going crazy, as it seems to be a recent addition to the program. My coding days are long-gone, so it is not necessary to me. Thanks again for spot-on, x-fast help! ~ Jon

  • How to use characters like \t or others for style some lines?

    7
    0 Votes
    7 Posts
    1k Views
    EkopalypseE

    EnhanceAnyLexer uses indicators to highlight the text in question and these do not have access to font attributes. More precisely, as of today, indicators only have the possibility to change the foreground color. The reason why indicators are used is simple, lexers use styles and EnhanceAnyLexer should not compete with Lexers for this resource.

  • How to add a table to the first block of headings?

    21
    0 Votes
    21 Posts
    2k Views
    dr ramaanandD

    @PeterJones and @Terry-R, it worked. Some auto-correction was making the h2 become H2 (and I had selected the match case option) and I have corrected it now for which I apologise. Thank you very much.

  • How you add line splitter every tag?

    4
    0 Votes
    4 Posts
    480 Views
    Neil SchipperN

    @Rioscar-Orion-ghandy

    I will assume you want the new line inserted after each and every instance of </Entry>.

    Here is a solution using “Find and Replace”.

    First, make sure you have a safe backup of the original file.

    Next, use the backward P toolbar button (“Show all characters”), or, menu item View -> Show Symbol -> Show all chars, to view your file’s line endings. (You can show or unshow all chars whenever you want. It has no effect on the text in the file.)

    Probably the line endings are CRLF. If they are LF then, in the solution below, instead of \r\n use \n. If they are something else, you will need to describe them, and an adjustment will be needed.

    Invoke Replace dialog (Ctl+h)

    Find what: </Entry>\r\n
    Replace with: </Entry>\r\n<-------------------------------------------------->\r\n

    In the group of four options on left side, first three UNChecked; 4th one ‘Wrap around’ should be checked.

    Search mode: Extended

    Now use Replace All to process the whole file, or, you can use Replace if you want to see how it works line by line. Ctl+z to undo.

    Check the end of the file and decide if you want to keep the last inserted line.

    Let us know if it worked the way you needed.

  • Indent lines still on after i turn it off

    3
    0 Votes
    3 Posts
    377 Views
    blitztron15B

    @Terry-R Thanks so much! Have a great rest of your day.

  • UDL for DXL (C LIke) Number processing issues.

    48
    1 Votes
    48 Posts
    6k Views
    PeterJonesP

    @PeterJones said in UDL for DXL (C LIke) Number processing issues.:

    XML recognizes numeric/hex entities

    Actually, if you look at the discussion here, it appears that Notepad++'s parsing of the XML might have difficulty with the decimal numeric entities, so it seems more reliable to just use the hex entities (the ones that start with &#x then have 1 or more hexadecimal nibbles, followed by the ;)

  • 0 Votes
    4 Posts
    419 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
    474 Views
    Mario CastroM

    Thanks Alan

    You rock!

  • Search and Replace

    7
    0 Votes
    7 Posts
    547 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
    1k 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
    332 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
    581 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
    4k 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
    782 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
    1k 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.