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
    • Robk BlueR

      Tab spacing copying from Notepad++ into WordPress

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      71 Views
      Alan KilbornA
      @Robk-Blue said: indentations perfect to 2 spaces Does this mean that you have Notepad++ set up such that tab characters are visualized as two spaces, or that you aren’t using tab characters at all and simply have Notepad++ directly insert two spaces when you press the Tab key when your caret is in a tab-stop column? If you are inserting tab characters in your Notepad++ document, then copying your text to another program for processing allows that other program to interpret tab characters as it sees fit (which could easily be different from “two spaces” in Wordpress’s default handling). Possible solutions to your “problem” might be to stop using tab characters (if that’s truly what you are doing), or look into adjusting Wordpress’s settings for how to handle tab characters (if it has such settings).
    • guy038G

      Other thoughts regarding the "ReWrap Text to (Clipboard or 72) width" of the old "TextFX" plugin

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      9
      1 Votes
      5 Posts
      146 Views
      guy038G
      Hi, @mpheath, @coises and all, @mpheath, I first copied the ORG_LF_ANSI.txt file as Lua_LF_ANSI.txt then I ran your last lua script against this file and the files are almost identical, except in the 3 locations below : [image: 1793099502965-4880d578-51d5-4405-8ec8-a7883a73ba30-image.jpeg] [image: 1793099529811-36b4d4bd-062a-4df3-82fe-ffd2ea034157-image.jpeg] Then I copied again the ORG_LF_ANSI.txt file as Lua_CRLF_UTF-8.txt then I ran your last lua script against this file. This time, there are 5 differences, shown below : [image: 1793099767481-0f7eee6f-9e87-494e-92b1-2ef95fcf4ea5-image.jpeg] [image: 1793099783194-9b5ec0fe-6c19-49b6-91a1-1c52166e7b61-image.jpeg] Thus, as a conclusion, your Lua script is quite correct but the last regex solution : SEARCH (?-s)^(.{1,78})(?:[\x20\r\n]*\z|\x20*\R|\x20+) REPLACE \1\n ( for Unix files ) or \1\r\n ( for Windows files ) Followed with a Trim Trailing Space operation, seems slightly better ! Now, @coises, you said : What is the problem to be solved? Well, I just wanted to point out that, in particular cases, a simple wrapping operation may not give the expected display, from the user’s perspective ! In my opinion, it seems better to use the present @mpheath’s Lua script ( or an equivalent Python one ) or the regex solution above rather than the odd solution provided by the TextFX plugin. Best Regards, guy038 Oh…, I forgot to tell you, @mpheath, that I changed the line : local maxLineLength = 72 By this one : local maxLineLength = 78 For all the tests !
    • Thomas KnoefelT

      [New Plugin] MultiReplace

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      83
      3 Votes
      83 Posts
      91k Views
      guy038G
      Hello, @thomas-knoefel and All, Again I made a comparison between the Notepad++ v8.9.8, Search++ v0.72 and MultiReplace v6.2 Search in Files feature against all files of my D USB key. All the Search results panels return 27,053 hits in 646 files of 1,153 searched, obtained in : 1m 43s for Notepad++ 1m 13s for MultiReplace 2m 18s for Search++ [image: 1793109010892-dfc6f617-00d6-48da-9551-cfb9fda1a96a-image.jpeg] As previously, I unpluged my USB key, restarted my computer and repluged my key before any Search in Files action Your list of improvements, in your latest relesase, are quite impressive ! And probably, my test does not exploit all the features of your plugin. I still need to carefully read your documentation ! Best Regards, guy038
    • Laurie StearnL

      PHP Lang: Word vs Keyword

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      158 Views
      Laurie StearnL
      @PeterJones Good info on StyleID, thanks.
    • FranciscoF

      rename files

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      467 Views
      S
      Regex is definitely the way to go for this kind of filename cleanup in Notepad++. It’s great how a simple search-and-replace can handle a whole list of filenames at once instead of renaming each one manually. Just make sure to test it on a few files first to avoid any unexpected changes.