Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • P

      Need help with find and replace using wildcards and in multiple files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      1 Votes
      11 Posts
      2k Views
      P
      @PeterJones Worked perfectly, thank you.
    • dr ramaanandD

      With the help of a Regex, how to find "code" preceded by a "<" only if "code {" is absent between "<style" and "</style>" in the css section which is below ?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      10
      0 Votes
      10 Posts
      266 Views
      guy038G
      Hello, @dr-ramaanand and all, Your requests are quite complex. So I imagined a completely different way to solve the different required conditions ! We’ll add one special character, right before any string <code, beginning a line, when the conditions are not respected Thus, perform, successively, these two regex replacements : SEARCH (?xs-i) ^ <code (?: (?! <code ). )+? code \x20? { REPLACE \x{2588}$0 We’re searching, here, for the string code\x20?{ ! And SEARCH (?xs-i) ^ <code (?: (?! <code ). )+? google_translate_element REPLACE \x{2588}$0 We’re searching, here, for the string google_translate_element ! Now, it’s quite trivial : simply search for the regex (?-i)^<code which should be the allowed cases, ONLY ! If you test it against my previous sample text, you should get the following modified text : █<code............>............</code> <style type="text/css"> code{ font-family: &quot;verdana&quot;; font-size: 19px; color: black; font-weight: bold !important; line-height: 1 !important; } } </style> <code............>............</code> <style type="text/css"> </style> █<code............>............</code> bla blah bla blah bla blah <style type="text/css"> code{ font-family: &quot;verdana&quot;; font-size: 19px; color: black; font-weight: bold !important; line-height: 1 !important; } } </style> <code............>............</code> <style type="text/css"> </style> <code............>............</code> bla blah bla blah bla blah <style type="text/css"></style> █<code............>............</code> <style type="text/css"> code { font-family: &quot;verdana&quot;; font-size: 19px; color: black; font-weight: bold !important; line-height: 1 !important; } } </style> bla blah █<code............>............</code> A lot of text here, spanning many lines <style type="text/css"> code { font-family: &quot;verdana&quot;; font-size: 19px; color: black; font-weight: bold !important; line-height: 1 !important; } } </style> Some text/codes here <div id="google_translate_element"></div> <script type="text/javascript"> Some javascript here </script> █<code............>............</code> A lot of text here, spanning many lines <style type="text/css"> </style> Some text/codes here <div id="google_translate_element"></div> <script type="text/javascript"> Some javascript here </script> After analyzing your text, simply run this replacement : SEARCH \x{2588} REPLACE Leave EMPTY BR guy038
    • Claudia SvensonC

      How to auto-convert text (Umlaute) when changing file encoding from ANSI to UTF-8 BOM?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      15
      0 Votes
      15 Posts
      2k Views
      mpheathM
      The Python script I posted is expected to handle single byte errors from UTF8 decoding. Asian languages can be 2 byte for ANSI and so the script may need to get the following byte too to decode both bytes properly. Probably will not find recovery tools and the like that will fix mixed encoding errors as the solution in some cases might be worse then the problem though in this case tested OK. Once saved, then there might be no going back and so creating a backup before the operation would be wise. Inspect the results to confirm is OK.
    • rafaelloR

      Awesome Notepad++ Configs, settings and syntax highlighting

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      7
      3
      0 Votes
      7 Posts
      343 Views
      PeterJonesP
      @rafaello , IANAL, and I don’t own the trademark, but with your clarifications and updates, I believe you’re probably not violating the trademark (IMO). It’s good to see someone who is willing to accept such feedback (rather than digging in your heels for a while, like happened with the aforementioned fork).
    • donhoD

      Notepad++ v8.9.7 Release Candidate

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      4
      5 Votes
      4 Posts
      757 Views
      donhoD
      @sevem47 OK, I will increase the width from 40 to 45 for the new release. It will be sufficient largely for any scaling factor.
    • Sylvester BullittS

      When Is the Next Update?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · bug with 8.9.6.4 html
      4
      0 Votes
      4 Posts
      797 Views
      PeterJonesP
      @Sylvester-Bullitt , Release Candidate is available. You probably want to test this version, and report any continued problems with the Open File feature ASAP.
    • R

      Unable to open files within an opened file

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      3
      0 Votes
      3 Posts
      347 Views
      R
      @PeterJones Perfect thank you very much!
    • R

      SnippetPlus v2.1 released. Snippets, SurroundWith and SurroundWith Multiline plugin

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      1 Votes
      3 Posts
      369 Views
      R
      @rdipardo thank you for pointing that out. I will check and do the needful.
    • blueicehallerB

      Recording Macro including URL Encode (RFC1738)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      443 Views
      PeterJonesP
      @blueicehaller , Plugin commands, like Plugins > MIME Tools > URL Encode cannot be recorded in a macro. However, we have a sub-FAQ: “Using Plugin, Run-menu and Macro Commands in Macros” which explains how you can manually edit a recorded macro to include such a command (noting that caveat that if you add or remove plugins, you might have to update your macro to refer to the new menuCmdID for the plugin command).
    • guy038G

      Generic Regex : How to use the couple of "Backtracking Control" verbs (*SKIP)(*FAIL) or (*SKIP)(*F) in regexes

      Watching Ignoring Scheduled Pinned Locked Moved Blogs
      9
      4 Votes
      9 Posts
      4k Views
      dr ramaanandD
      Another example can be seen at https://community.notepad-plus-plus.org/topic/27601/with-the-help-of-a-regex-how-to-find-code-preceded-by-a-only-if-code-is-absent-between-style-and-style-in-the-css-section-which-is-below/4
    • E

      Modern text file icon

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      1
      1
      0 Votes
      1 Posts
      254 Views
      No one has replied
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      98
      5 Votes
      98 Posts
      25k Views
      CoisesC
      Search++ version 0.6 is available. The big change in this version is the addition of a Search in Files dialog: [image: 1783211949656-7beeed4c-7d6c-4c3e-8b34-84e9473c4215-image.jpeg] There have been a few small fixes elsewhere — by now I’ve forgotten what they were — but mostly this release is for Find in Files. Adding that led to quite a few changes in code it shares with the existing functions, so unfortunately there could be new bugs in old functions. On the whole, though, handling of the search results list should be improved for all functions that use it. If you don’t like to read help, at least don’t forget to try right-clicking the text entry boxes and items in the file list. Replace in Files is planned but not yet implemented.
    • Mario LemelinM

      Latex in markdown not working in npp 8.9.6.4 (64 bits)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      619 Views
      PeterJonesP
      @Mario-Lemelin , everything work fine except for the equations in latex Not all Markdown processors understand LaTeX. (For example, the Markdown processor for this forum does not.) It appears that MarkdownViewer++ does not have that feature (which doesn’t surprise me). I visited this site (https://github.com/npp-plugins/plugintemplate) but was unablew to find help. That site is just the repository for the C++ template for creating a plugin. It’s not going to have information on how to use any specific plugin. The home for MarkdownViewer++ is https://github.com/nea/MarkdownViewerPlusPlus , so that’s where you’d have to go. But the author has recently set the repo to “read only”, indicating that they are unwilling to support that plugin any more. However, there are other Markdown plugins available from Plugins Admin. I’ve never used them, but two I see include NppMarkdownPanel @ https://github.com/mohzy83/NppMarkdownPanel AnotherMarkdown @ https://github.com/ezyuzin/NppAnotherMarkdown this appears to be a fork of NppMarkdownPanel with a different feature set. when I look at its README, it mentions the ability to use katex for math (I think it’s an option that you’d have to enable by editing a config file for the plugin; you’d want to experiment and read the documentation for that plugin to be sure) – and a quick look at the katex description implies to me that it’s essentially LaTeX compatible syntax. You can install either of those from the Plugins Admin interface. It may be that one of those will do what you need (my bet would be on the second as your best chance).