• How to replace multiple "variables" vs a template

    4
    0 Votes
    4 Posts
    2k Views
    Alan KilbornA

    @michael-vincent said in How to replace multiple "variables" vs a template:

    conf\nconf

    And you’d want to be careful about what type of “newlines” you put in; specifically on Windows you are likely to want \r\n instead of \n.

  • 0 Votes
    6 Posts
    2k Views
    dfs-D

    First question for me is, if the issue is created when saving or when opening the file(s).

    So does make changing the file in Notepad++ make it unreadable by Windows Notepad?

  • regexp help: lookahead and lookbehind with spaces

    12
    0 Votes
    12 Posts
    609 Views
    Neil SchipperN

    @patrickdrd said in regexp help: lookahead and lookbehind with spaces:

    why not match “accidental” carriage returns/ line feeds?

    I don’t know enough about your data or the intended purpose of the pair matching to say either way, but I will say that, since you are gathering up either ab or ba pairs, then, a small error can make every subsequent pair a different pair from what would have matched without the error.

    It’s up to you to think through whether this harms what you’re trying to accomplish, and if it does, to try to devise a strategy that could detect a malformed pair, and maybe skip it and then resync and pick up all subsequent pairs with desired grouping.

  • Notepad++ becomes unresponsive

    5
    0 Votes
    5 Posts
    557 Views
    Jon MayJ

    @terry-r
    Thanks for the reply.

    This is what I’ve done and so far all is working well.
    I’ll see how it goes today when I start using it properly, but so far so good.

    Thanks for the help :)

  • PythonScript and system Python

    15
  • Click on search results item prompts to save "new x" file

    5
    0 Votes
    5 Posts
    413 Views
    Terry RT

    @maverick-doe said in Click on search results item prompts to save "new x" file:

    This fixed it for now. If it happens again, I’ll download the latest as you suggested.

    Actually I wouldn’t necessarily suggest always upgrading to the very latest.

    In recent months there have been a lot of new versions released. Unfortunately in getting some enhanced features running (large files were one) there have been other errors/regressions (re)introduced.

    So often being at the front of the queue is not ideal. You take your chances with potential issues. The system referred to is on my work PC and unfortunately those who do the patching at work (upgrading) didn’t listen to me. Luckily I haven’t had a bad run but on my home PC I tend to run a few versions back from the front. I sort of use the approach that if it ain’t broke don’t fix it. So unless a newer version has something I’d really like to use I hold back. YMMV!

    Terry

    PS I did note you now had the 32-bit version and wondered why

  • Refresh "Folder as Workspace", is the folder is on the Network Drive.

    2
    0 Votes
    2 Posts
    753 Views
    PeterJonesP

    @gururaj-jois ,

    So, it depends on what you mean by “mapped”. If you mean what Windows means, then my experience is exactly the opposite of yours. If you mean "a network drive accessed directly by UNC, not by a Windows OS Z:-style alias, which WIndows calls a ‘map’ ", then I can confirm your results:

    My experiment:

    I have a directory on a remote machine available from \\machinename\path\ I use Windows “map” feature (right click on This PC, then click Map Network Drive, and map \\machinename\path\ to the drive Z:\ – this is a Windows map. In Notepad++, I use File > Open Folder As Workspace twice. The first time, I select Z:\, and I see it show me the whole hierarchy The second time, I select \\machinename\path\, and I see it show me the whole hierarchy In Windows, I add a new file to \\machinename\path\ Instantly, the Z: portion in Notepad++'s Folder as Workspace panel shows me the new file. However, the \\machinename\path\ portion in Notepad++'s Folder as Workspace panel does not update

    (I see the same behavior on both v8.2.1 and v8.3.2)

    If possible, I would recommend just using Windows to map the UNC path to a pseudo-drive-letter, like I did for Z:. If you don’t want to do that long term, then you can read the “feature request” FAQ which explains how and where to make an official feature request. If you do make a feature request, make sure you follow their template (especially include the Debug Info of your current Notepad++, by going to the ? menu and clicking Debug Info); also, make sure you use correct terminology: a mapped drive is a drive letter that points somewhere else (like my example Z: points to the remote machine); a UNC path is using the double-backslashed \\machinename\path\ to access the machine directly, without a Windows mapping. Finally, if you create that request, please paste a link to that request in reply to this topic, so future people who find your request here can find out if it’s been implemented yet or not.

    Good luck.

  • Need Explanation of a few Session.xml Parameters & Values

    8
    0 Votes
    8 Posts
    2k Views
    Daniel TomberlinD

    @PeterJones, thanks for clarifying. I got a sensible conversion from the online tool after entering the formula into Google to calculate an answer to provide it.

    So with this example, entering the calculated answer of 1.3201045e+17 into the online converter gave me Monday, April 29, 2019 8:56:40 PM, which is exactly what I needed.

    Thanks again @Alan-Kilborn and @PeterJones!

  • Selecting text between tags and saving to another document

    4
    0 Votes
    4 Posts
    5k Views
    Devlin DeaneD

    @terry-r

    This was exactly what I was looking for, I sure do thank you. Sorry, sometimes my head cannot figure out certain things.

  • ToolBucket Multiline Find & Replace won't open

    8
    0 Votes
    8 Posts
    2k Views
    Terrie HT

    @peterjones THANK YOU! I did what you said, which actually did not work, but it prompted me to uninstall Notepad++ completely and this time I opted to not keep custom settings, then reinstalled v. 8.2.1 and now it works! :)

  • How to Refresh Workspce folder after creating and adding a new file

    6
    0 Votes
    6 Posts
    2k Views
    Gururaj JoisG

    @andrecool-68 For folders on the network drive, this is not working. We have to close and open the notepad++.

  • Search for range of values

    7
    0 Votes
    7 Posts
    2k Views
    Thomas KlinghanT

    @alan-kilborn said in Search for range of values:

    \b69\d{2}.\d+\R

    ahhhh sorry for my misunderstanding.

    Thank you very much :-)

  • 0 Votes
    4 Posts
    564 Views
    rdipardoR

    Answered on GitHub.

  • 0 Votes
    3 Posts
    254 Views
    KrammigK

    @peterjones Excellent, thanks for that Peter. That did the trick.

    Cheers

  • UDL folding closer questions

    10
    0 Votes
    10 Posts
    1k Views
    SBICNCUserS

    @peterjones It becomes a little messy if I can’t collapse sections around the child elements. There are a lot of classes and CLASS isn’t the only entity with this problem.

    I’m going to have to decide if that’s good enough or if I need to put more work into this. The whole purpose of this is that I need to start parsing some data from these files programmatically and the structure makes it very difficult to follow. The format doesn’t lend itself well to syntax highlighting.

  • How to add lines in specific locations

    21
    0 Votes
    21 Posts
    2k Views
    ImgemaI

    @alan-kilborn

    Your solution worked. I added the missing “/” in the second <thumb> part where it was needed and by using “replace all” it applied the lines in all entries.

    Thanks all for the replies :)

  • Global override exceptions ?

    3
    0 Votes
    3 Posts
    272 Views
    post manP

    @michael-vincent Works, thanks! Did not consider that

  • Parallel searching for 2 Names

    11
    0 Votes
    11 Posts
    1k Views
    Alan KilbornA

    @guy038 said in Parallel searching for 2 Names:

    SEARCH (?s-i)(?:(Name_1)|(Name_2)).{0,2000}?(?(1)(?2)|(?1))

    I think if you are making this into a generic formula, it should be:

    (?s-i)(?:(Name_1)|(Name_2)).{0,Max_chars}?(?(1)(?2)|(?1))

  • Change / Save encoding How to convert 800 txt files UTF-8 to UTF-8-BOM

    23
    0 Votes
    23 Posts
    8k Views
    EkopalypseE

    @hellena-crainicu

    That works for me too.

    e7b5ba8e-5e9f-4164-ac83-1f8e62771b78-image.png

  • Searching a file between a text and Hex value

    2
    0 Votes
    2 Posts
    766 Views
    Alan KilbornA

    @aelita-stones

    Sorry, probably not many are going to click on links to websites they don’t recognize. The proper instructions for making a posting such as yours are found HERE.