• How to define a UDL Delimiter with spaces

    4
    0 Votes
    4 Posts
    5k Views
    Js jSJ

    operators & delimiters
    delimiter 1 style

    open: Message="

    close: "

  • 0 Votes
    7 Posts
    3k Views
    Js jSJ

    bulk rename your files to the same extension

    file.1
    file.2
    file.3

    become

    file.1.txt
    file.2.txt
    file.3.txt

    or whatever extension you need

    in windows, open cmd window, navigate to your folder

    then use

    rename *.* *.*.txt

    or do a copy command

    copy *.* *.*.txt

    harder to rename back to original filenames, though

  • Row swap for multiple files

    11
    0 Votes
    11 Posts
    5k Views
    Js jSJ

    if you do not feel comfortable with regex, like me

    do search for <~~~ in all your files
    this is a “flag sequence”, so make sure that it is not already there

    if not found then go on.

    Find what: <FIRSTNAME>
    Repl with: <~~~LASTNAME>
    Mode: Normal or Extended

    Find what: <LASTNAME>
    Repl with: <~~~FIRSTNAME>

    Find what: </FIRSTNAME>
    Repl with: <~~~/LASTNAME>

    Find what: </LASTNAME>
    Repl with: <~~~/FIRSTNAME>

    Find what: <FIRSTNAME />
    Repl with: <~~~LASTNAME />

    Find what: <LASTNAME />
    Repl with: <~~~FIRSTNAME />

    now check for any missed ones

    Find what: <FIRSTNAME
    Find what: <LASTNAME

    now delete the ~~~

    Find what: <~~~
    Repl with: <

    you could reduce number of steps

    Find what: FIRSTNAME>
    Repl with: LASTNAME~~~>

    Find what: LASTNAME>
    Repl with: FIRSTNAME~~~>

    those two would cover <LASTNAME> and </LASTNAME>

    anyway i hope that it helps you or anyone else

  • Tip: Feature Reopen closed tab

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Wellington-Melo

    Tip: Use CTRL+SHIFT+T (if you haven reconfigured it.) ;-)

    Cheers
    Claudia

  • Set user-defined language as default?

    Locked
    10
    0 Votes
    10 Posts
    5k Views
    Claudia FrankC

    Good to see that you’ve got it sorted out.

    Cheers
    Claudia

  • Simple Regex Request -- TIME

    4
    0 Votes
    4 Posts
    2k Views
    gerdb42G

    Ah, yes, I assumed a fixed single-space Gap. And to match an arbitrary-length sequence of spaces, try \s+ instead of \s\s.

  • Regular request { .* }

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    guy038G

    Hello, Victor,

    I think that a possible solution would be :

    (?s)(?<=SkinMesh\r\n)\{.+?\}

    Notes :

    This first part of the regex is called a look-behind. It’s a condition that must be true, in order to valid the overall regex. but it will not be part of the final match. So the regex engine looks for the string SkinMesh, followed by the two End of Line characters CR + LF.

    If the string, above may be found, it, then, matches an opening brace character, followed by the shortest range of any character, even on several lines, till an ending brace character

    Best Regards,

    guy038

  • [REGEX] Remove a section from a list.

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hello, Dafug Xerath,

    Just to show that several regexes can achieve the same S/R, here is a second solution :

    Open your file in Notepad++

    Open the Replace dialog ( CTRL + H )

    In the Find what: field, type in @(?:.+?)(?=:)

    Leave the Replace with: EMPTY

    Select the Regular expression search mode

    Finally, click on the Replace All button

    Et voilà !

    NOTES :

    This regex looks, first, for the literal character @.

    At the end of the regex, the part (?=:), called a look-ahead, is a condition, that means that the overall match must be followed by a literal colon :.

    So, the inner middle part, .+?, tries to match the shortest range of any character between the @ character, included and the : character, excluded.

    The symbol + is a quantifier that means a maximum of characters, from 1 to n and the symbol ?, after the quantifier +, forces the regex engine to select the minimum range of any character, between the limits @ and :

    As this range of characters is included in the syntax (?: .... ), this means that the range, of each line, will NOT be stored for later use, either in the Find or Replace regexes.

    Finally, as the Replace dialog is empty, this range is just deleted, from each line !

    Beware : if you prefer to use the abelfourier’s search regex, the correct regex is, obviously :

    @(?:[^.]+)\.COM

    You’ll have to uncheck the Match case option

    Best Regards,

    guy038

  • How do I adjust font style and font size???

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @Art-Curator

    In the most basic sense, see Settings (menu) -> Style Configurator. Select “Global Styles” in the Language list, and “Global override” in the Style list. Then, on the right, you should see “Font name” and “Font size” and I think you can guess what to do from there.

    Those are just the baby steps of this type of configuration… :-D

  • Can't Figure what is wrong in selecting text within the parentheses.

    6
    0 Votes
    6 Posts
    3k Views
    David ChiuD

    Dear Scott and Guy

    Thank you for your help and detailed explanation.
    Scott one works for me as I need "See " in the beginning of the parenthesis.
    I try to modify Guy’s one to work for me but not working it out.

    Thanks will continue to study it.

  • Automatic Reset

    18
    1 Votes
    18 Posts
    14k Views
    Claudia FrankC

    @Gabr-F

    Ok, I think we can agree that developers should strive to be tolerant and users should strive to be polite.

    100%

    Making the perfect world would probably be tantamount to solving the halting problem, though :) .

    :-D Yes, or how about finding a definition of a perfect world to which everyone agrees.

    Cheers
    Claudia

  • Forcing Notepad++ into Little Endian without BOM

    9
    0 Votes
    9 Posts
    8k Views
    Gabr-FG

    @gstavi I prefer not to touch my old files, I’m fond to them and like to leave them as they are :)
    The advises of converting all files from one line ending to another or one encoding to another always looked like heresy to me :)

  • Find-in-files result - cannot navigate to found files

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Peter-Crimmin

    A shot in the dark.
    Stop npp.
    Rename %APPDATA%\notepad directory
    Restart npp and retest the behavior.
    If it isn’t solved - post the debug-info found under ? menu.

    Cheers
    Claudia

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Notepad++ with Github repositry . help

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Shahroz-Ahmed

    unfortunately your description is a bit to vague to find out what you really want to do so the answer
    couldn’t be vague only.
    Download the git tools and use nppexec plugin to call them.

    Cheers
    Claudia

  • Jump back to relevant section after prompted find/replace overshoots?

    11
    1 Votes
    11 Posts
    4k Views
    Scott SumnerS

    This (PARTIAL lines selection -> Tab -> Shift+Tab -> FULL lines selection) may not be such a great thing after all. After using it in an editing session, and sometimes much later, when doing an unrelated Delete Line operation (via the Delete Line shortcut key, with no selection active), some odd behavior occurs: the wrong line is deleted, I get TWO carets in odd places (I have Multi-Editing enabled)… If I narrow down further what is actually going on, I’ll post here again, but for now: beware of this tip!     : (

  • Want to delete everything like [xxx] including []

    14
    0 Votes
    14 Posts
    9k Views
    Alan KilbornA

    Hello Mr. Guy,

    I think I see what you mean, although at first I didn’t. I was trying to type a literal \ followed by x followed by { … followed by } in the box I type in to make a post on this website. But…that didn’t work correctly in the Preview area.

    Then it dawned on me that if I type my posting in Notepad++ FIRST (using the Character Panel method), then copy and paste it to the website, it works to make wide         open        spaces!

    Thank you for your help.
    AK

  • Function list and AutoIt / AU3 files

    10
    0 Votes
    10 Posts
    7k Views
    MartianM

    @MAPJe71 said:

    @Martian the commentExpr is incorrect.

    FYI PR #2602 - FunctionList Update 2 includes an AutoIt3 parser.

    Thank you MAPJe71
    I meant it to be in the official Notepad ++ installer

  • Change or Modify Keyboard Shortcut, is it an option??

    6
    0 Votes
    6 Posts
    21k Views
    René W.R

    Hat kind of the same Problem - the Keyboard-Settings are not comfortable.

    You can’t just remove a shortcut without scrolling to the top of the list and select “None”. The window or Tablecolumns can’t be resized and the Table is Bigger. You can’t click on the key-combination without hiding the left column:
    https://o68i.imgup.net/menu53e4.png
  • Eliminating duplicate (identical) lines

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello, Ed,

    The suppression of all the duplicate lines, in a pre-sorted file, can be easily obtained with a Search/Replacement, in Regular expression mode !

    Open your file, containing the sorted list of items

    Open the Replace dialog ( CTRL + H )

    In the Search what: field, type (?-s)(^.+\R)\1+

    In the Replace with: field, type \1

    Check the Regular expression radio button

    Click on the Replace All button

    Et voilà !!

    Notes :

    The (?s) in-line modifier ensures you that the special regex dot character will match standard characters, only, even if you, previously, checked the . matches newline option !

    Then, the part ^.+\R matches all the characters ( .+ ) of any non-empty line, between the beginning of line (^ ) and its End of Line character(s) ( \R ), included

    So, the part (^.+\R), enclosed by round brackets, simply stores any complete line contents, as group 1

    Finally the part \1+ tries to match any positive amount of subsequent identical lines, following the previous line

    And if a overall match can be found, all that block of identical lines, is just replaced by the group 1 ( \1 ), that is to say, ONE copy of that block

    Best Regards,

    guy038