• Custom search and replace

    gcode
    5
    0 Votes
    5 Posts
    692 Views
    Steve Allen 0S
    All I can say is Thanks! That works perfectly!
  • jn Notepad++ Plugin snags shortcuts

    7
    0 Votes
    7 Posts
    2k Views
    TroshinDVT
    @Alan-Kilborn said in jn Notepad++ Plugin snags shortcuts: You’d need to contact the author of the plugin to make your opinion known. т.е. надо уговорить автора плагина jN использовать интерфейс Мапера? С шорткатами в N++ постоянно проблемы. Так что мне приходится юзать модифицированный для анализа шорткатов. https://www.codeproject.com/Articles/42780/UI-Control-Data-Spy который может получать список команд меню. [image: 1620328361888-screenshot_38.png]
  • Character colors

    10
    0 Votes
    10 Posts
    5k Views
    PeterJonesP
    @Ekopalypse , Nice. That works well for zero/oh, but not one/ell: [image: 1620326982583-dfef4c43-a968-4db4-a415-58ba325b91c2-image.png] Whereas doing the operators as lowercase a-z will hjelp with one/ell but not zero/oh: [image: 1620327026990-d3f2e89e-8610-47aa-9a3c-b1975fc0d3e3-image.png]
  • Adding text with variable on several files

    13
    0 Votes
    13 Posts
    3k Views
    Ramanand JhingadeR
    @Alan-Kilborn Yes, you’re right. Thanks for the help @Alan-Kilborn @PeterJones and @guy038
  • Join two lines

    7
    0 Votes
    7 Posts
    2k Views
    bigredcherokeeB
    @PeterJones Thanks Peter for the help.
  • Replace with text from a list line by line

    6
    0 Votes
    6 Posts
    997 Views
    EkopalypseE
    @Alan-Kilborn Right, I remember guy038 did something like that with regex, but then it’s even more crucial to know the exact layout and a pythonscript might be possible, but I hesitate to think about it or create something without knowing what to do.
  • lowercase in Notepad

    5
    0 Votes
    5 Posts
    765 Views
    Alan KilbornA
    @Edmond-Mullins said in lowercase in Notepad: What must i do to be able to code in lowercase in Notepad++ Perhaps “Caps Lock” is engaged? And, if so, perhaps some very basic computer skills are lacking?
  • Auto-Complete for Outlook and MS Word Reference Libraries

    5
    0 Votes
    5 Posts
    1k Views
    TroshinDVT
    @Robert-Rapp а если так? [image: 1620184991663-screenshot_37.png]
  • Saved session omits the Document List Panel

    2
    0 Votes
    2 Posts
    572 Views
    PeterJonesP
    @Juha-Leppäranta , That’s a known issue (#9710); they are working on it.
  • Select entire column in large text file (80,000 lines)?

    3
    0 Votes
    3 Posts
    23k Views
    Charles HoffpauirC
    @Alan-Kilborn Thanks, works great!
  • Matchine the characters at the beginning of a line?

    5
    0 Votes
    5 Posts
    867 Views
    PeterJonesP
    @Mark-Gray , I’m new to using regular expressions For your reference, the official Notepad++ documentation site has a large page devoted to searching, most of which is about regular expressions: https://npp-user-manual.org/docs/searching/ And this Forum has a regular expression FAQ
  • 0 Votes
    24 Posts
    9k Views
    guy038G
    Hello, @ramanand-jhingade, @alan-kilborn, @terry-r, @peterjones and All, @ramanand-jhingade, sorry that my method did not work :-( I don’t understand ! It’s important to note that my method would work ONLY IF the beginning of the “canonical” line is exactly : <link rel"canonical" href=" ^ | Beginning of line If this line could be, for instance, any of these ones, below : <link rel "canonical" href=" <link rel"canonical"href=" <link rel "canonical"href=" <link rel "canonical" href=" <link rel"canonical"href=" <link rel "canonical"href=" My method would not find the canonical line ! So, just tell me about it ! I even made tests with files containing a space chars in their names like This is a test.html and it did create the correct line : <link rel"canonical" href="https://cure4incurables.in/This is a test.html" /> Of course, in this specific case, in order to get functional links, we must change any space char with the %20 syntax, thank to the S/R, below : SEARCH (?-i)(?:href="|(?!\A)\G)(?:(?!").)*?\K\x20 REPLACE %20 Using the Regular expression search mode and ticking the Wrap around option would result, after replacement, in the functional line : <link rel"canonical" href="https://cure4incurables.in/This%20is%20a%20test.html" /> Best Regards, guy038
  • Folder Workspace depth limit?

    5
    0 Votes
    5 Posts
    1k Views
    PeterJonesP
    @Y-B Can you do an experiment like the one I showed, including showing your debug info (found in ? menu, Debug Info), and paste the screenshot here? And then try changing some of the folder names to be similar to your environment where it’s not working. Because, as I’ve shown, it works for me. And we cannot help you debug if you cannot show us how it doesn’t work for you.
  • Cannot refresh search results

    2
    0 Votes
    2 Posts
    447 Views
    John MancinaJ
    Just figured out the problem. I had a directory with temp cached files in the search path…Duh.
  • Regex. Remove headings that has no full stop at the end (.)

    12
    1
    0 Votes
    12 Posts
    3k Views
    guy038G
    Hello, @dumitru-s, @peterjones and All, Sorry to reactivate this topic but, @dumitru-s, from the picture, below, could you just bookmark ALL the lines which should be matched, in each chapter, by the “future” regex ? You are also invited to add some other chapters, with the corresponding bookmarks, if this way could improve our comprehension of what you want to match ;-)) [image: 1620064270737-0903c4a4-b40b-46d0-8358-f512b43d45f6-image.png] Thanks for this extra-work ! BR guy038
  • Entering unicode characters with high numbers

    5
    0 Votes
    5 Posts
    980 Views
    PeterJonesP
    @Alan-Kilborn , You are correct. I was posting from my phone and didn’t notice that autocorrect changed “font” to “don’t”. Sorry.
  • Open large txt files >4GB

    2
    0 Votes
    2 Posts
    946 Views
    gstaviG
    Some info here
  • Any plugin to index and make the search faster

    3
    0 Votes
    3 Posts
    2k Views
    Java DevelopmentJ
    If there is an indexing plugin it would be great to look into the content easily? example - https://www.addictivetips.com/windows-tips/search-for-notepad-settings-with-a-plugin-that-indexes-them/
  • functionList not working with User Defined Language (MQL4)

    3
    0 Votes
    3 Posts
    1k Views
    JC ManhJ
    Hi @guy038! Great! Thank you so much! It’s worked! Love Notepad++ so much!
  • 0 Votes
    30 Posts
    8k Views
    Vasile CarausV
    happy Easter, friends. Another solution can be next one: Select the link you want from canonical line: (<link rel="canonical" href=")(.*?)(" \/>) Select the second link from ru section: (alt="de" \/></a>&nbsp; <a href=")(.*?)(><img src="index_files\/flag_lang_ru) Combine these 2 regex in the same way (.*?) and put (\2) on second link, after (.*?) (this selects the second bracket, so the link in the canonical line) So the regex become: (<link rel="canonical" href=")(.*?)(" \/>)(.*?)(alt="de" \/></a>&nbsp; <a href=")(.*?)(\2)(><img src="index_files\/flag_lang_ru) eventualy, we can try (?!\2) instead of (\2) and make a FIND with .matches newsline So the regex become: (<link rel="canonical" href=")(.*?)(" \/>)(.*?)(alt="de" \/></a>&nbsp; <a href=")(.*?)(?!\2)(><img src="index_files\/flag_lang_ru) Don’t know why is not working. I believe my thinking was correct. :) <link rel="canonical" href="https://mywebsite.com/en/truth.html" /> <meta name="copyright" content="me, https://mywebsite.com/"/> <link rel="sitemap" type="application/rss+xml" href="rss.xml" /> <link rel="image_src" type="image/jpeg" href="https://mywebsite.com/icon-facebook.jpg" style="display:none"/> <meta itemprop="image" content="https://mywebsite.com/icon-facebook.jpg"/> <meta property="og:image" content="https://mywebsite.com/icon-facebook.jpg"/> <meta property="og:type" content="article" /> <meta property="fb:app_id" content="2156440"/> <meta property="fb:admins" content="16454242"/> <meta property="og:url" content="https://mywebsite.com/en/other-car.html"/> <body> TEXT TEXT <div class="search"> <div align="left"> <a href="https://mywebsite.com/hope.html"><img src="index_files/flag_lang_ro.jpg" title="ro" alt="ro" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/fr/book.html"><img src="index_files/flag_lang_fr.jpg" title="fr" alt="fr" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/en/truth.html"><img src="index_files/flag_lang_en.jpg" title="en" alt="en" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/es/green.html"><img src="index_files/flag_lang_es.jpg" title="es" alt="es" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/pt/yellow.html"><img src="index_files/flag_lang_pt.jpg" title="pt" alt="pt" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/ar/truth.html"><img src="index_files/flag_lang_ae.jpg" width="28" height="19" title="ar" alt="ar" /></a>&nbsp; <a href="https://mywebsite.com/zh/truth.html"><img src="index_files/flag_lang_zh.jpg" width="28" height="19" title="zh" alt="zh" /></a>&nbsp; <a href="https://mywebsite.com/hi/truth.html"><img src="index_files/flag_lang_hi.jpg" width="28" height="19" title="hi" alt="hi" /></a>&nbsp; <a href="https://mywebsite.com/de/truth.html"><img src="index_files/flag_lang_de.jpg" width="28" height="19" title="de" alt="de" /></a>&nbsp; <a href="https://mywebsite.com/ru/truth.html"><img src="index_files/flag_lang_ru.jpg" width="28" height="19" title="ru" alt="ru" /></a> TEXT TEXT <div id="pixxell"> <a href="https://mywebsite.com/en/book-miracle.html">I find a miracle </div> TEXT TEXT