• Ease values in-between range

    6
    0 Votes
    6 Posts
    274 Views
    Andrew WardleA

    @Ekopalypse Just got done trying it out, works wonderfully, many thanks :)

  • RegEx, exclude search in any brackets

    11
    0 Votes
    11 Posts
    1k Views
    andrecool-68A

    @guy038 Thank you for help!
    I combined my macro and your two regular expressions into one, now everything works correctly and beautifully! But if the file is large (e.g. 100mb) the macro works for about 30 seconds))).

  • Delete two characters but not from all columns

    5
    0 Votes
    5 Posts
    379 Views
    Farnoosh AslamiF

    @Terry-R OMG thanks a bunch Terry… It worked perfectly. You saved me!

  • Help for an ANSI file

    34
    0 Votes
    34 Posts
    6k Views
    EkopalypseE

    @andrecool-68

    But only as long as you have not opened more than the maximum number of files to be saved.

    73679fc4-37eb-4f49-8a16-4a454c69650d-image.png

    Create/maintain some sort of database for this info

    But I see a disadvantage - maintenance. How to keep this kind of db clean. I would say that during runtime of npp one can expect it but
    after a restart it will become a nightmare to keep it clean.
    How would one handle temporarily inaccessible files, moved or deleted files.
    On the other side if you can configure an extension or lexer to always
    open a file in a specific encoding then I assume most of the issues are solved.

  • Search Syntax?

    3
    0 Votes
    3 Posts
    267 Views
    Alan KilbornA

    @schidan

    If you want to restrict the matches to two numbers between pairs of = then I would suggest:

    find: =\d\d(?==)

  • How to delete all text except proper names?

    8
    0 Votes
    8 Posts
    457 Views
    guy038G

    Hello, @petr-andreev, @terry-R, @astrosofista and All,

    @terry-r and @peterjones are right about it. For instance, the first word of your example, Sent is obviously not a proper name but this long sentence could have started with a proper name, too ! Regexes are really not a fair tool to solve semantic problems ;-))

    @Astrosofista, I do like your approach, too ! As for me, I succeeded to build up a regex which catches, “more or less”, all the proper names and compound proper names of the OP’s text !

    I modified your example, adding some dummy text as well as the @peterjones text, for a deeper text. Of course, the first word of any sentence is considered as a proper name. And, although your first sentence, slightly modified, seems to give good results, the @peterjones text, coming next, is not so pertinent !

    Sent by them to the north in search of new lands, the daring daredevils of the Swamp Orkhon, Holokhoi Oyuun, Symattai the Blacksmith, Hara Tumen, Uluu Horo, the elder Omogoy and Ellei Bootur, as well as the general MacArthur, O'Neil the Scotsman , A SpecialNicknameForTest; Cardinal Mazarin, la Marquise de Maintenon, Louis "Le Grand Dauphin" and Louis XIV the Great or Sun King, his father, proceeding from the banks of the Great Ebe from top to bottom and from bottom to top, found three spacious valleys. As a second paragraph, we will follow d'Artagnan on his quest to find the bones of St. Francis of Assisi, along with fictional characters and Dr. Watson, and Bill S. Preston, Esq, and George Wexford-Smyth III. They were really curious whether Dutch cyclist Mathieu van der Poel would lose his "van der", and whether Dutch would be kept because it's a proper adjective (not a proper noun).

    The following regex S/R :

    SEARCH (?x-is).*?(\u[\l\u'."]+(((?!and|or)[^,;.:?!\r\n]){1,5}?\u[\l\u'."]+){0,3})|.+(\R)?

    REPLACE ?1\1(?4:\r\n)

    Would output this text :

    Sent Swamp Orkhon Holokhoi Oyuun Symattai the Blacksmith Hara Tumen Uluu Horo Omogoy Ellei Bootur MacArthur O'Neil the Scotsman SpecialNicknameForTest Cardinal Mazarin Marquise de Maintenon Louis "Le Grand Dauphin" Louis XIV the Great Sun King Great Ebe As Artagnan St. Francis of Assisi Dr. Watson Bill S. Preston Esq George Wexford-Smyth III. They Dutch Mathieu Poel Dutch

    Remark : if you add the new rule that “Any sentence will never begin with a proper name”, it should even be possible to avoid the first word of any sentence ! However, the @peterjones and @Terry-R thoughts should convince you of the limits of regexes, in this matter !

    Test on your real text to see if any other problem occurs ! I do not have time, presently, for explanations of this search regex, but I will, next time !

    See you later,

    Best Regards,

    guy038

  • Selection of a Paragraph Above or Below

    5
    0 Votes
    5 Posts
    498 Views
    Vlad KotenkoV

    Thank you. I was able to assign a new key combination in the settings of the program. The automatic selection of empty spaces between paragraphs is not a problem.

  • How do I show/hide the "CR" and "LF" text at the end of the text line?

    20
    0 Votes
    20 Posts
    186k Views
    EkopalypseE

    @Tom-Klecker said in How do I show/hide the "CR" and "LF" text at the end of the text line?:

    I’m a returning user to Notepad++. It’s an excellent simple text/ ASCII text editor.
    The CR and LF are part of the original ASCII code set and are a couple of the ‘machine codes’ (codes 00 to 31) that go back to the teletype origins where it was literally a command to reposition the print carriage back to the left margin and roll the platen up the space of a single line. The 2 command CR& LF were sent by TTY operators to start new lines… Later some printers and word processing apps were designed to automatically execute a line feed with every CR which led to the need to edit/convert some text documents for compatibility with different printers/word processors.
    I like to see the CRLF to make sure they are there in the document and the line breaks are ‘hard’ and not interpreted by the app based on TAB, commas (CSV), semicolons, etc.
    In a computer printer or display the commands tell the device to show the next character down a line space at.the left margin (or indentation).

    Activate it via menu view->show symbol->show end of line

  • Error Code 2

    2
  • NPP completely in the cloud - is it possible?

    8
    1 Votes
    8 Posts
    351 Views
    Alan KilbornA

    So the snapshot backups are more to be thought of as “N++ buffer backups” rather than file-on-disk backups.

    The filenames of created backups are a bit different:

    For the snapshot backups there’s a filename.ext@yyyy-mm-dd_hhmmss file created (not literally, of course, hopefully that is understood).

    For the backup-on-save you get either filename.ext.bak (for Simple backup) or filename.ext.yyyy-mm-dd_hhmmss.bak (for Verbose backup).

  • No suggestions - spellchecker

    23
    0 Votes
    23 Posts
    2k Views
    tbotboT

    @tbotbo said in No suggestions - spellchecker:

    @Ekopalypse Thank you very much! I confirm, it’s fixed with release 1.4.18.

    @Stef-Ks FYI

  • Multiline regex find

    9
    0 Votes
    9 Posts
    1k Views
    Alan KilbornA

    @Ekopalypse

    Alternatively: Tick the . matches newline box. confused me as this means (?s), correct?

    That’s what we in the business call an “Alan screw-up”.
    Yes, of course that should have been Untick the . matches newline box
    It’s what I meant, but there was a disruption on the way from my brain to my fingertips.
    Apologies for the confusion.

  • Problem with cursor position

    16
    0 Votes
    16 Posts
    3k Views
    Alan KilbornA

    icon bar

    Yes, different but “usable”?
    The toolbar icons for one of the plugins, on the far right, are much smaller in one case.

    More disturbing is what @Terry-R pointed out with the whitespacing dots.

    It’s probably just a “legacy app” issue that isn’t going to get fixed soon, if ever.

    But thanks to all who pointed specifically what is different in the images. It would have been great to have a short textual list with the first posting of the screenshots, to save anyone who cared the time spent doing “Where’s Waldo”.

  • How to change this text, to this (see image comparison inside)

    3
    0 Votes
    3 Posts
    144 Views
    Axel ManuelA

    @Ekopalypse said in How to change this text, to this (see image comparison inside):

    you mean joining several lines into one? Then yes. Edit->Line Operations->Join Lines

    thankyou so much !

  • Changed format - code stopped working

    2
    0 Votes
    2 Posts
    121 Views
    EkopalypseE

    @Monika-Dosztal

    If the code formatting has changed, this could be an indication that you
    have changed something that has resulted in invalid code, which would
    also explain why your html site no longer works.
    But apart from that, npp is just an editor - it does not automatically
    generate\modified html code.
    The error is most likely in your code or in the setup of your web server.

  • Session & Backups not being saved

    6
    0 Votes
    6 Posts
    267 Views
    EkopalypseE

    @Luke-Parkes-Haskell

    Can you try renaming your %APPDATA%\notepad++ directory temporarily and then run npp to see if that solves the problem?

  • Truncate find results lines

    6
    2 Votes
    6 Posts
    1k Views
    Alan KilbornA

    @fred-zept said in Truncate find results lines:

    I already tried doing the copy option, but when I paste lines somewhere else, I still get them truncated.

    Well, there is another way, assuming you are doing a search in a single document.
    You can use the Mark dialog to put a bookmark on each line that has a match, then use a command to copy bookmarked lines.
    Obviously, then pasting what you’ve copied to a fresh tab gives you the long lines in their entirety.

    Here’s the procedure:

    Make sure the Display Bookmark checkbox is ticked in Settings menu > Preferences > Editing

    Invoke Mark… either on the Search menu or by its default keycombo of Ctrl+m.

    Fill out your search information to find what you want.

    Additionally, Tick the Bookmark line checkbox.

    Press the Mark All button.

    Select the Copy Bookmarked Lines command from the Search menu’s Bookmark submenu.

    Paste your copied lines somewhere else for further processing.

  • Interesting 'Recent Files' menuing situation

    7
    1 Votes
    7 Posts
    291 Views
    Alan KilbornA

    My thought on the english_customizable was that maybe a typo (maybe one of the ID numbers got changed) or misbalanced quotes or angle-brackets has caused confusion in the parser, creating the second menu.

    Hmm, a localization change doesn’t create menus/items, so I fail to see how this could happen, but I guess anything is possible.

    Or maybe you have two <History> sections in config.xml.

    Verified as a No, I don’t.

    Well, either a restart of N++ or a changing to English caused the duplicate-but-blank menu item to disappear.
    BUT…I’ve seen it before, so I know that it will likely reappear.
    I’ll keep an eye out for its return and see if I can figure out more about it and what might cause it.

    Thanks to those that offered input.

  • Help about text find and replace

    3
    0 Votes
    3 Posts
    142 Views
    Matteo SalviatoM

    @guy038 said in Help about text find and replace:

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-si)“txt”:\x20"(.+?)"

    REPLACE “txt”:\x20""

    Tick the Wrap around option, preferably

    Select the Regular expression search mode

    Click on the Replace All button

    Thanks a lot!!! it works very well!!!

  • About editing .sol files

    5
    0 Votes
    5 Posts
    3k Views
    kissofkillK

    @andrecool-68 I thought maybe there was a plugin for it, I thought it was a basic text file.