• How do you update AppData configs like contextMenu.xml?

    8
    1 Votes
    8 Posts
    2k Views
    EkopalypseE

    …, I suggested to only save the changes that are different from the default file to the users file.

    but that means it has to have its own name, otherwise it won’t
    work with portable versions where EVERYTHING has to be under a root directory.

  • How to properly display French characters in HTML?

    7
    0 Votes
    7 Posts
    4k Views
    Pour SvdeuxP

    @Alan-Kilborn
    Got it, thanks!

  • Extract from a list

    2
    0 Votes
    2 Posts
    230 Views
    PeterJonesP

    @Pedro-Contreras ,

    Assuming your post converted ASCII quotes to smartquotes because you didn’t use the </> button in the forum, then an answer that works for the data you presented is to use regular expression mode with FIND = (?-s)^([^,\r\n]*?,){2}'([^,\r\n]*?)',(?1){4}'([^,\r\n]*?)',.*$ and REPLACE = $2 $3

    (2X0997,'navx8n','nap345','','','Nava','A','firstname@yahoo.com','no 2Z,n street,saras ng,selaiyur','','chennai','TN ','IN','0000X3','0000-00-00')

    becomes

    nap345 firstname@yahoo.com

    ----

    Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as literal text using the </> toolbar button or manual Markdown syntax. To make regex in red (and so they keep their special characters like *), use backticks, like `^.*?blah.*?\z`. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get. Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.

  • Notepad++ How to find in page with UTF-8 instead of ANSI ?

    3
    0 Votes
    3 Posts
    238 Views
    Robin CruiseR

    yes, nice answer. But very hard , because I need to change almost all words from every sentence:)

  • How do I replace only the first <br> tag across multiple files?

    25
    0 Votes
    25 Posts
    2k Views
    guy038G

    Hi, @scott-nielson and All,

    A bit off-topic : Yeah, it’s a common mistake when doing translations ! In French, this kind of words are known as “faux amis” words ! Just because :

    In English, the adjective sensible have the French sense of raisonnable / sensé or pratique

    In French the adjective sensible have the English sense of sensitive or noticable

    So, I should have used the expression sensitive to case !

    Cheers,

    guy038

  • F7 does not work

    6
    0 Votes
    6 Posts
    2k Views
    УменяМодем ОграниченныйТрафикУ

    I tried it now - the function works!
    Now it doesn’t work again - there is nothing in the window again!
    And the function did not find a match!
    I did everything as you say here!2021-08-07_13-29-31.png

  • Can Some Help Me?

    5
    0 Votes
    5 Posts
    202 Views
    GregG

    Hi Peter,

    I figured out what you were trying to tell me and YES I was able to find the missing files.

    Thank you for your assistance. Very much appreciated.

    Greg Shaw

  • I want to mark lines that do NOT contain a certain character

    3
    0 Votes
    3 Posts
    245 Views
    Chris Tanguay 0C

    @Alan-Kilborn Thank you. That works prefectly!

  • the file is unreadable

    2
    0 Votes
    2 Posts
    604 Views
    Alan KilbornA

    @Чёрный-Хомячок

    It looks like you have a binary file, and you should not edit that with Notepad++ (a text editor, not a binary editor).

    You should edit such a file with a “hex editor”, but in your case since you don’t know already these things it is probably ill-advised for you to edit it at all.

  • Synchronized Vertical Scrolling is grayed out.

    2
    0 Votes
    2 Posts
    212 Views
    PeterJonesP

    @Luis-Piña-III ,

    Do you have two views visible?

  • Replace some text of a string in multiple lines

    2
    0 Votes
    2 Posts
    130 Views
    Alan KilbornA

    @Sheraz-Ahmed

    So…what makes the example BISM different from the other occurrences of BISM? This would be critical to know in order to offer advice to you.

  • Show no-break space

    7
    1 Votes
    7 Posts
    37k Views
    Alan KilbornA

    For those interested, there’s a PythonScript way of doing this sort of thing, HERE.

  • Replace lowercase with uppercase between brackets

    11
    1 Votes
    11 Posts
    3k Views
    Hank KH

    NP …Thanks again Terry … Cheers

  • Find identical paragraphs

    4
    0 Votes
    4 Posts
    899 Views
    PeterJonesP

    @Caro-Chennouf ,

    I figured out why my regex wasn’t working, so was able to get it to properly match an N-line paragraph that has a repeat later.

    if you’re in v8.x, go to Settings > Preferences > Highlighting Go to the Mark All section and uncheck Match whole word only
    c88196e3-89b5-4a06-8971-07bdbc24e946-image.png Go to the first line (Ctrl+Home) FIND the first instance of each paragraph Search > Find FIND WHAT = (?-s)((^.+?(\R|\Z))+)(?=(?s:.*)\1) Search Mode = ☑ Regular Expression FIND NEXT
    => this highlights the first paragraph that is repeated somewhere else
    f7ea6590-2d52-42d7-866c-0c8d8456b4d1-image.png Use Search > Mark All > Using #th Style (or right click context menu > Style All Occurrences of Token)
    => all of the instances of that first paragraph should be marked with that style number
    04df6ffc-e045-4443-a690-d0d2b60bc17e-image.png Use Search > Next or F3 from the editor window, or the FIND NEXT button in the FIND dialog, to select the next “first instance of a paragraph”, and style using a different #th style. Repeat as necessary.
    b162546d-52a7-405c-b113-3faa0da8ffa4-image.png

    So it’s not 100% automated, but it’s better than manually having to find each paragraph (chorus or bridge) And remember, this will not be saved in the file; the next time you open it, you’ll have to do it again.

  • 0 Votes
    2 Posts
    184 Views
    EkopalypseE

    @Mahfuj-Khan

    That’s like saying my car is broken, what’s the problem?
    If you REALLY need help to solve the problem,
    you need to give more information about what you have done,
    with which version, if errors occurred and so on …
    In short, useful information that one can take to try to replicate your problem.

  • Find number, insert further along the line

    3
    0 Votes
    3 Posts
    153 Views
    Alexander WilsonA

    @Alan-Kilborn
    You are an absolute genius! That worked a treat!
    Thank you very much!

  • Need Help ! I want to insert an element after each 2 words

    3
    0 Votes
    3 Posts
    180 Views
    patrick rozonP

    It works well, I thank you very much dear Alan for your support.

  • setting npp as the default of text files in Windows 7

    4
    0 Votes
    4 Posts
    511 Views
    Donald BellefuilD

    I had to change the registry per your suggestion. Thank you.

  • Messagebox showing how many replacements were made.

    2
    0 Votes
    2 Posts
    164 Views
    Michael VincentM

    @William-Martin said in Messagebox showing how many replacements were made.:

    does not generate a MessageBox showing how many replacements were made.

    Is the status in the Find/Replace window not good enough? I prefer that rather than a pop-up window I need to dismiss:

    05290d7d-0e58-4800-a6d0-b694efdb35f1-image.png

    Cheers.

  • Single quote character

    5
    0 Votes
    5 Posts
    659 Views
    PeterJonesP

    @Ian-Whyte said in Single quote character:

    How do I change the font in Notepad++?

    Settings > Style Configurator > Global Styles > Default Style > Font
    (see style configurator documentation)

    And as you discovered, it’s not likely a font issue: I have never seen a font where ASCII 39 single-quote ' is rendered the same as ASCII 96 back-tick/grave-accent ` and as Stefan said is also different from the Unicode U+00B4 acute accent ´. (And none of these should not be confused with the ‘smart single-quote’ characters ‘ and ’ which this forum will convert unprotected single-quotes into if you’re not careful). But in Notepad++, if you keyboard is set up as normal, and you don’t have Windows configured to map that key to a different character, then typing a single-quote-key on your keyboard should give you ' in Notepad++.