• Change shortkey configuration

    5
    0 Votes
    5 Posts
    736 Views
    Edificio Rascacielos TenerifeE

    Thanks. Understood

  • Sort numbers in ascending order with Regex

    6
    0 Votes
    6 Posts
    2k Views
    Bebee BebrtoB

    the idea, maybe, is to make all Edit Options to make replacement in all files, not just in one file.

  • First line replacement

    6
    0 Votes
    6 Posts
    3k Views
    GS MusicG

    Thanks guys. Both solutions worked fine. Thank you for your help.

  • Ctrl + Tab doesn't switch documents

    3
    0 Votes
    3 Posts
    3k Views
    Albert BihlerA

    Thanks to your comment I found the culprit. It’s “Multi PuTTY Manager”. If I close it Ctrl+Tab in Notepad++ works as desired. By the way Multi PuTTY Manager" also blocks Ctrl+Tab in Firefox.
    Thanks for helping!

  • Space Before and After a Equals (=) character?

    2
    0 Votes
    2 Posts
    818 Views
    PeterJonesP

    The user-defined-language settings will not automatically add spaces. However, you could search for \x20*=\x20* and replace with \x20=\x20 in regular expression mode. That will change any number of spaces (including zero) followed by = followed by any number of spaces (including zero) with exactly one space, exactly one equal, and exactly one space.

  • auto completition

    2
    0 Votes
    2 Posts
    507 Views
    PeterJonesP

    Yes – well, depending on what you mean by “on demand”. If my explanation doesn’t fully solve your problem, you will have to describe it better.

    In your Notepad++ installation folder (often c:\program files\Notepad++) there will be an autoCompletion folder with a bunch of XML files, one per language¹. You can add new auto-completion terms to that file². If you have a UDL³ that you’d like to have auto-completion for, you can create a new XML file in that folder that will hold the auto-completion definitions.

    see docs: https://npp-user-manual.org/docs/auto-completion/#create-auto-completion-definition-files Notepad++ tends to save configuration files as it exits if you’ve made any changes in the GUI. Thus, when manually editing this or any config file using Notepad++, follow the sequence: close all instances of Notepad++; open one single instance; edit the file; save; exit Notepad++; re-open. At this point, the changed settings should be in effect. user defined language: https://npp-user-manual.org/docs/user-defined-language-system/
  • mark and remove

    8
    0 Votes
    8 Posts
    1k Views
    Gulab BorkarG

    @guy038

    thanks

  • Removing duplicated lines out of log file.

    9
    0 Votes
    9 Posts
    3k Views
    Sarah DuongS

    @PeterJones If it is attached with instructions send questions here. This will help you understand the question, and support it correctly. Perhaps I have not found this post yet.

  • convert .txt file to pdf - missing last char

    4
    0 Votes
    4 Posts
    795 Views
    PeterJonesP

    If sodapdf.com is doing the conversion from .txt to .pdf, why do you think it’s a Notepad++ problem?

    If you can show that sodapdf.com works with a .txt file with more than 80 characters on a line that was created in some other application, but does not work with a .txt file with more than 80 characters on a line that was created in Notepad++, then we might be able to give some ideas. But if the same thing happens no matter what creates the >80-character text line, then you might want to ask the folks at sodapdf.

  • Hide/Unhide Non-Bookmarked Lines

    7
    0 Votes
    7 Posts
    8k Views
    Mike SmithM

    @Alan-Kilborn

    It seems like you could run your bookmarking operation, then do a “Inverse Bookmark” command, and then run the script @Ekopalypse provided…to get what you want?

    Yes, that’s a good idea! I did just that, and it hid everything I didn’t need to edit. Thank you.

    24000 things to examine and edit is a huge manual task.

    I don’t thing it’s something that can be automated though. The issue is that I have all the download links in one database (which I’m editing through Notepad++), and the files are stored on a seperate server. The task I am currently processing, is to randomize all filenames:

    https://www.example.com/74547854787fileone.zip https://www.example.com/56647979548filetwo.zip https://www.example.com/01324679462filethree.zip https://www.example.com/64647452105filefour.zip

    So not only do I need to complete the task of randomizing the filenames (A task I’m achieving using Bulk Rename Utility), I have to then ensure the download links are changed to represent the relevant filename.

  • Find&Replace pairs of capitalised words

    4
    1 Votes
    4 Posts
    642 Views
    Joaquin BuenoJ

    Thanks to both, @Ekopalypse and @guy038 :) :) :)

    Both codes worked like a charm.

    For anyone interested in these codes, @Ekopalypse 's code finds every space-separated pair of words starting with a capital letter , and @guy038 's code finds every space between words starting with a capital letter. Both were good for what I needed to do!

  • Colors from stylers.xml are wrong for JSON

    2
    1 Votes
    2 Posts
    479 Views
    raul1roR

    I also tried with other themes and same problem. Wrong colors.

  • marked and copy

    2
    0 Votes
    2 Posts
    344 Views
  • Regex - Positive Look Behind With *

    7
    1 Votes
    7 Posts
    7k Views
    Ray-HR

    Hello @guy038,

    Thank you for the detailed breakdown of the problem. There is a lot of useful knowledge here. I especially appreciate you pointing out the subtleties brought upon the look-arounds by their atomic structure.

    Best,
    Ray

  • Set file type to default to ".txt" file

    7
    0 Votes
    7 Posts
    2k Views
    EkopalypseE

    @Alan-Kilborn

    At the end it depends what one is doing.
    If most of the time I create a new file by cutting/posting/pasting then
    this might be the solution - for other tasks it might be not.

  • one sentence per line

    5
    0 Votes
    5 Posts
    2k Views
    Dragoon 35D

    Thank you @guy038

  • Windows 10 Speech Recognition does not work well with Notepad++

    1
    0 Votes
    1 Posts
    452 Views
    No one has replied
  • shortening url

    8
    0 Votes
    8 Posts
    2k Views
    guy038G

    Hi, @wessel-bogers, @peterjones and All,

    @wessel-bogers, and All, when, you ask for modifications of data, with regular expresions, please, please …

    Give us a fairly large amount of your  INPUT  text ( as you did,@wessel-bogers, in your previous post )

    Give us, also, the expected  OUTPUT  text, from your specific  INPUT  test. That’s the  KEY  point !

    Then, from the differences between these two texts, even if you cannot express simply yourself, regarding your goal, we should be able to guess your needs, most of the time ;-))

    Remember : If you clearly defined the rules to process, in your  INPUT  text, half the job is already done ;-))

    See you later,

    Best Regards,

    guy038

  • UDL code folding

    5
    0 Votes
    5 Posts
    1k Views
    EkopalypseE

    This example doesn’t seem to be appropriate to show your issue with code folding.
    If I put ( and ) in Folding in code 1 style then I get the same what lisp seems to do. Left one is UDL, right one is LISP

    b8ebe726-8822-4082-9458-46da11fa680d-image.png

    The link provided doesn’t explain code workflow.
    At the moment I have to assume that a code block is, indeed,
    identified as the part between an open bracket and a closing bracket.

  • File Too Big Inconsistency

    2
    0 Votes
    2 Posts
    448 Views
    PeterJonesP

    Memory usage varies – both in Notepad++ and in the other applications and background tasks running on your machine. The closing of Notepad++ and reloading will free all the memory except that used by the active file, which gives you the biggest chance. For files in the hundreds of megabytes, it’s probably better to use the sequence of exiting all NPP instances, then looping on “start new NPP instance with no files open; open huge file; process; close file; exit NPP”

    You don’t say which version of Notepad++ you use, or whether you’re 32-bit or 64-bit (? > Debug Info would be able to easily tell us), but 64-bit should be able to handle bigger files than 32-bit (unfortunately, because of the way the Scintilla editor component is written, not files as big as 64-bit addresses would imply are possible).

    Other than that, you might try closing as many other applications as you can, and doing anything you can to limit memory usage. You might try running without plugins ("c:\program files\Notepad++\notepad++.exe" -noPlugin "superhugefile.txt") to limit Notepad++'s memory usage.

    If all your processing involves is running one or more regex inside the file, you might want to try getting a windows copy of sed or windows copy of gawk, or use a full programming language like Perl or Python – all of which may (or may not) be able to make the transformations in your text that you need without requiring the entire file to be held in memory – it depends on the processing you need to do. (Using the PythonScript plugin as a Python interpreter, you could write your script and run it inside Notepad++, even if you aren’t using the PythonScript-specific access to the currently-open-files: you’d basically be using the PythonScript.dll instance of Python instead of installing your own python.exe. Note: it wouldn’t be enough to use PythonScript to load the huge file into Notepad++, because that would still have the full memory requirement, which you are running up against; you’d have to just use standard Python text-processing, trying to do it line-at-a-time or chunk-at-a-time, rather than whole-file-in-memory.)

    (edit: in case I wasn’t clear, the sed/gawk/perl/python solution would be outside of Notepad++; you could use NPP to write your script for one of those tools, and even use its run menu and similar functionality to launch the process… but it wouldn’t be doing the processing to the open files inside Notepad++, and wouldn’t be a solution that we’re really equipped to help you with, since this isn’t a general-programming forum.)