• tabs selected when doubleclicking on words

    8
    0 Votes
    8 Posts
    4k Views
    HotmelH
    @Claudia-Frank Oh. After a few days the problem disappeared. Exactly. It seems that the plugins haven’t been updated. Nothing plugins was switched off. Npp ver 7.3.3 remained as before. Mystic. Perhaps the problem disappeared after reseting “Preferences -> Delimiter” and restart Npp.
  • Run Command Error Notepad++

    Locked extension run avr atmel
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS
    @Arnav71 If I’m understanding correctly, why not just make a second version of that command with “clean” embedded into it?
  • Custom Language not recognized

    Locked custom language
    4
    0 Votes
    4 Posts
    2k Views
    Jim DaileyJ
    @Picasso-CT Zebra should appear BEFORE eagle. That is, Upper-case letters are lexically less than lower-case letters.
  • 0 Votes
    7 Posts
    3k Views
    Scott SumnerS
    @Contafisc-Empresarial Unless I am misunderstanding what you are wanting to do (very possible!), I’d say that changing [^0]. to [^\s0]{2} does what you need. It means: for the next two positions, match as long as both positions are not some combination of: whitespace (the \s) zero (the 0)
  • Feature suggestion: tab-specific display settings

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Change main single word select color when smart highlighting enabled?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Switching between themes easily

    settings switch theme
    2
    0 Votes
    2 Posts
    2k Views
    acrolinkA
    Any news on this topic?
  • XML Tools - Validation Issue

    failed to locat xml schema xml tools validation
    4
    0 Votes
    4 Posts
    7k Views
    w3artwW
    This seems to be an issue with the https / TLS connection - at least in my case it works fine without https in front - with https I receive this error. Maybe this can be fixed easily in the next version. Thanks, Mark
  • Find and replace / Timecode / SRT

    replace timecode srt subtitles
    5
    0 Votes
    5 Posts
    5k Views
    Scott SumnerS
    Borrowing somewhat from @guy038 's technique of the lookahead assertion proposed as a solution for this posting: https://notepad-plus-plus.org/community/topic/13761/multiple-copy-paste-notepad , here’s a way of solving the problem presented in the current thread using only ONE Replace-All (instead of TWO as proposed earlier). Find-what box: ^(\d{2}:\d{2}:\d{2})\.(\d{3})(?=.*?(\d{2}:\d{2}:\d{2})\.(\d{3})) Replace-with box: \1,\2 -> \3,\4 Search mode: ☑ Regular expression -AND- ☑ . matches newline If this (or ANY) posting was useful, don’t post a “thanks”, just upvote ( click the ^ in the ^ 0 v area on the right ).
  • Settings get deleted every few days

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Claudia FrankC
    @Peter-Orrick Re: XML dates - the dates of the 6 files span the past 2 yrs… what is the significance? Just to see what is going on. The npp settings are stored in these xml files. Depending on the creation/modification timestamps of the files we could determine if there is a general deletion of those files or if specific files are affected only. E.g. I would assume that CCLeaner would treat all files the same and delete those after some time. Now we should see that the modification timestamp, for the files which get modified, and the last accessed timestamp of the other xmls is more or less the same once you started npp and do your reconfiguration. In addition it could have been a trigger to remember if you specified some special rules, for CCLeaner or any other tool, which might have resulted in this behavior. Cheers Claudia
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Update destroyed my data!

    Locked help data lost
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • !!!!Data Lost from the saved Notepad++ txt File!!!!! Please Help

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Sri Hari VegesnaS
    any more help??
  • Code folding in Ada

    ada
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @NippurDeLagash when checking ada lexer (LexAda.cxx), it looks like it doesn’t support folding. Cheers Claudia
  • unable to install PoorMansTSqlFormatter

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @paresh-bhangale I never used PoorMansTSqlFormatter plugin - if it is just a dll, then unzip it to the plugins directory and restart npp. (I assume it is a unicode version) Cheers Claudia
  • Padding the result of a regular expression search

    padding regex regex
    4
    0 Votes
    4 Posts
    5k Views
    guy038G
    Hello, @evertdb, @scott-sumner and All, Here is my contribution to the general padding problem, at end of lines. As in the Scott’s solution, above, it uses two consecutive regex S/R So, EvertDB, let’s suppose the original test example, below : ;; 1 ;; 12 ;; 123 ;; 1234 ;; 12345 ;; 123456 ;; 1234567 ;; 12345678 ;; 123456789 ;; 1234567890 ;; 12345678901 ;; 123456789012 ;; 1234567890123 ;; 12345678901234 ;; 123456789012345 ;; 1234567890123456 ;; 12345678901234567 ;; 123456789012345678 ;; 1234567890123456789 ;; 12345678901234567890 ;; 123456789012345678901 As I suppose that the two leading semicolons is the line-comment syntax, in your language, perform, the first S/R, below : SEARCH (?-s)^;;.+ REPLACE $0 ============================== Notes : First, due to the (?-s) syntax, the special dot character will stand, strictly, for any single standard character Then, in the searched part, we’re just looking for two semicolons, at beginning of lines, followed by a non-null amount of standard characters In replacement, we, simply, rewrite the complete searched match, followed with a space character and 30 equal signs. From your example, it happens that the minimum, of equal signs to add, is 21. But, you don’t have to bother about estimating that minimum. Just add a large enough amount of this character, at the end of the replacement regex So, we get the modified text, below : ;; 1 ============================== ;; 12 ============================== ;; 123 ============================== ;; 1234 ============================== ;; 12345 ============================== ;; 123456 ============================== ;; 1234567 ============================== ;; 12345678 ============================== ;; 123456789 ============================== ;; 1234567890 ============================== ;; 12345678901 ============================== ;; 123456789012 ============================== ;; 1234567890123 ============================== ;; 12345678901234 ============================== ;; 123456789012345 ============================== ;; 1234567890123456 ============================== ;; 12345678901234567 ============================== ;; 123456789012345678 ============================== ;; 1234567890123456789 ============================== ;; 12345678901234567890 ============================== ;; 123456789012345678901 ============================== Now, we just have to delete the extra equal signs at the end of each line. To do so, this second S/R needs the number of characters, at beginning of each line, after the two semicolons symbols, which must be preserved ! From your example, below, you can, visually, determine that this number is 24 : ;; foo bar =============== 123456789012345678901234 So, we’ll use the following regex S/R, below : SEARCH (?-s)^;;.{24}\K.+ REPLACE Leave Empty Notes : For the first part (?-s), just refer the notes, above The part ^;;.{24} looks, from beginning of each line ( ^ ), for two semicolons, followed by the next 24 characters Then the part \K resets the regex engine working position and forgets the immediate previous search Therefore, the final regex match, is, simply, .+, which stands for any non-null amount of standard characters, after the absolute location 24, till the end of each line Empty replacement regex means that this ending amount of characters is just deleted IMPORTANT : For this second S/R, due to the \K regex feature, you must, exclusively use the Replace All button ( NOT the step-by-step Replace button ! ) And, we obtain the final text, with a lined-up padding of equal characters, at the end of each line : ;; 1 ===================== ;; 12 ==================== ;; 123 =================== ;; 1234 ================== ;; 12345 ================= ;; 123456 ================ ;; 1234567 =============== ;; 12345678 ============== ;; 123456789 ============= ;; 1234567890 ============ ;; 12345678901 =========== ;; 123456789012 ========== ;; 1234567890123 ========= ;; 12345678901234 ======== ;; 123456789012345 ======= ;; 1234567890123456 ====== ;; 12345678901234567 ===== ;; 123456789012345678 ==== ;; 1234567890123456789 === ;; 12345678901234567890 == ;; 123456789012345678901 = Et voilà ! Finally, EvertDB, to be exact, we need to get rid of any empty comment line, located right above each real comment-line. To that purpose, use the regex S/R, below : SEARCH (?-s)^;;\R(?=^;;.+) REPLACE Leave Empty Notes : For the first part (?-s), just refer the notes, above The part ^;;\R looks for two semicolons, at beginning of each line, immediately followed by End of Line character(s), whatever it is/they are ! The part (?=........) is a positive look-ahead, in other words, a condition which must be true, for an overall match The condition, to respect, is the regex ^;;.+, which represents a non-empty comment line, in your language ( two semicolons, followed by a non-mull amount of standard characters, before the end of the line ) Due to empty replacement, the searched regex ( the null-comment line ) is, simply, deleted Best Regards, guy038 P.S. : For padding characters, at beginning of a list, you may refer to the topic, below : https://notepad-plus-plus.org/community/topic/13988/find-replace-issues/5
  • Multiple copy/paste notepad++

    4
    0 Votes
    4 Posts
    10k Views
    guy038G
    Hello, @rafał-kowalski, My idea is to find, with a regex, a 00:00:00 time template, ONLY IF it’s followed, further on, by an other 00:00:00 time template and to store this second time template, in a group, for further use in replacement To that purpose, we’ll use a positive look-ahead structure ( a condition which have to be true for an overall match, but which is never part of the final regex ) So, the regex S/R could be : SEARCH (?s)\d\d:\d\d:\d\d(?=.+?(\d\d:\d\d:\d\d)) REPLACE $0 \1 Notes : The first part, (?s), is a modifier, which means that the dot special character stands for any single character ( Standard or EOL ones ) Then the second part, \d\d:\d\d:\d\d, is the final text to find ( a 00:00::00 time template ) Now, the third part,(?=.........), is the positive look-ahead feature, which have to be true Finally, the fourth part, .+?(\d\d:\d\d:\d\d), is the condition to respect : .+? represents the shortest, non-null, range of any character, even split on several lines (\d\d:\d\d:\d\d) is the nearest following 00:00:00 time template, which is stored as group 1, due to the surrounded parentheses In replacement, we re-writes, first, the whole searched string ( $0 ), followed with a space character, and ended with the group 1 ( \1 ), which represents the second time template REMARK : It is important to point out that, when evaluating the condition .+?(\d\d:\d\d:\d\d, inside the look-ahead, the character position, used by the regex engine, is, finally, NOT moved and is still located, right after the last digit of the first time template ( the final regex to look for ), even if, somehow, it had to go ahead, till the end of the second 00:00:00 time template, in order to verify the condition ) So starting with your original text, below : 00:01:11 fdfdfdfdfdfdf 00:02:12 hjhgjjjjjjjjjjg 00:03:22 hgffggggggg 00:04:14 hjghhhghggg This S/R would produce the text, below : 00:01:11 00:02:12 fdfdfdfdfdfdf 00:02:12 00:03:22 hjhgjjjjjjjjjjg 00:03:22 00:04:14 hgffggggggg 00:04:14 hjghhhghggg Et voilà ! Best Regards, guy038
  • Can't find and replace non-breaking space in text!

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    Scott SumnerS
    @Капитан-Маузер If you mean what I think you do about non-breaking space, try this Find: Find-what box: \xA0 Search mode: ☑ Regular expression If this posting was useful, don’t post a “thanks”, just upvote ( click the ^ in the ^ 0 v area on the right )
  • Can only "Save As" for an existing document

    save file
    2
    0 Votes
    2 Posts
    2k Views
    NippurDeLagashN
    This happens when files are marked as “read-only”, but in that case, you can not make changes because editing is disabled.