• Convert ANSI to UTF-8

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Persian text sorting

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • I broke it! I can't get Notepad ++ to display/search word documents

    Locked
    5
    0 Votes
    5 Posts
    7k Views
    Teri S. SoftleyT

    Find in files and replace seems to work on text files but not word documents. I don’t know how it worked before. I will check the other posts to see if maybe there is a solution for the find and replace.

    I figured out how to find the release dates of previous versions.

    Thanks.

  • Auto New Line When Typing {

    7
    0 Votes
    7 Posts
    6k Views
    Muhammad Adam FirdausM

    @dail almost!

    But, I’ve found that setting when we type “{”, it’s automatically create closing “}” with one tab indent or without we press ENTER.
    Unfortunately, I forgot that settings.

  • Execute macros one after another?

    3
    0 Votes
    3 Posts
    4k Views
    Thomas WeissT

    Nobody knows if this ir possible or not? :(

  • How to specify user defined language on the command line

    Locked
    4
    0 Votes
    4 Posts
    5k Views
    Mario ValleM

    This is what I suspected. Time to find another solution.
    Thanks again
    mario

  • problems with lenght

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Navigate to a specific record (tag)

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hello, Peter, Gerdb42 and Scott,

    Very clever solution, Scott ! Indeed :-)) I slightly modified your main idea, to obtain the regex, below :

    (?-s)(?:.*\R){50}\K

    Notes :

    The Regular expression search mode must be checked

    The Wrap around option will be, also, checked ( IMPORTANT )

    The (?-s) modifier ensure the DOT will NOT match any End of Line characters

    The group (?:^.*\R) is considered as a NON-capturing group, because of the syntax, before the group, itself (?:. It, also, prevents from a non-wanted behaviour, while reaching the end of file !

    Finally, the \K syntax forgets the previous match and matches an zero length string, only, as there’s nothing, following the \K form

    So, each time you click on the Find Next button or you hit the F3 key, you go at line 51, 101, 151, 201, and so on. The nice thing is that, when it remains less than 50 lines, near the end of file, it loops and get, again, the line 51 :-))

    Unfortunately, the backwards search, with the shortcut SHIFT + F3, does NOT work :-((

    So, I thought about a second solution, which seems interesting, if you navigate throughout a huge file or if you frequently move forwards and backwards, as when building a source code ! This time, the right regex is :

    (?-s)(?:.*\R){50}\K\X

    Follow the few steps, below :

    Open the Find dialog ( CTRL + F )

    Select the Mark tab

    Again, the Regular expression search mode must be checked

    The Wrap around option will be, also, checked ( IMPORTANT )

    Check the Bookmark line option ( IMPORTANT )

    Click on the Mark All button

    Close the Find dialog or use the ESC key

    Now, you just have to hit :

    The F2 key to go forwards, every 50 lines

    The shortcut Shift + F2, to go backwards, 50 lines upwards

    As above, you reach the line 51, 101, 151, 201 and, towards the end of the file, loops back to line 51

    Notes :

    Compared with the previous regex, the \X syntax has been added. Strictly speaking, the \X form stands for a unique non-diacritic Unicode character, followed by zero or more diacritic associated marks ( as simultaneous accents, on that character )

    However, these details can be generally ignored and we may consider that, most of the time, \X represents, any single character, including the End of Line characters ! So this form avoids to write the longer regex (.|\R) :-))

    So this regex marks the first character of a line, ( Normal character or End of Line character ), every 50 lines !

    Best Regards,

    guy038

  • Compile and navigate

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Is it possible to...

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hello, bill clinton and Gerdb42,

    If I refer to the original text, posted by bill clinton, below :

    https://notepad-plus-plus.org/community/topic/11716/help-with-formula-please/1

    it seems, that there are two spaces between the words Log and Quantity, as well as between the Qty number and the LastAccess string.

    So, rather that typing two spaces, we may use a SPACE, followed by the + quantifier ( identical to the syntax {1,}) )

    That comes to the regex :

    (?-i)Log +Quantity +\K\d+(?! +LastAccess)

    Notes :

    You’ll notice that I did NOT use the following look-behind (?<=Log +Quantity +). Indeed it’s an invalid regular expression, because this regex may represent strings of different length ( due to the + quantifier )

    It is important to notice that this restriction does NOT apply to look-aheads, as ( (?! +LastAccess) )

    So, I replaced the look-behind with the \K construction. Thus, once, the regex has matched the regex Log +Quantity +,
    this string is forgotten and the regex engine match is reset to a zero length string !

    Finally, the (?-i) modifier, at the beginning, forces the regex engine to perform a NON insensitive case search

    Best Regards,

    guy038

  • Please help with code tagging/navigation

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    Which plug-ins have you tried?

  • Help With Formula, Please...

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hello bill clinton,

    Depending on the restriction’s level, that you would like to, just use ONE of the three regexes, below and replace with a specific number, say 1000

    Find what : (?-is)Quantity +\K\d+

    Find what : (?-is)Stack.+Quantity +\K\d+

    Find what : (?-is)Stack.+Log.+Quantity +\K\d+

    and :

    Replace with : 1000

    Notes :

    Of course, the Regular expression search mode will be checked

    The (?-is) modifiers, at the beginning, force the regex engine to do the search :

    In an NON-insensitive case way, ( -i ) modifier

    NOT as a single line, ( -s ) modifier. This means that the DOT does NOT match any End of Line characters. On the contrary, (?s), the DOT would match ALL the characters. So, for instance, the regex search (?s).+ is really identical, to CTRL + A !

    Thus, because of these modifiers, you do NOT have to care about the state of Match case and . matches newline options !

    Best Regards,

    guy038

  • Python Script to add text with incremental numbers

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Can the status bar be customized?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Can I recover my notepad++ files/settings?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Dennis RD

    It turns out that “Refresh” saves stuff in C:\Windows.old folder

    So, I copied folder Notepad++
    from
    C:\Windows.old\Users\dennis\AppData\Roaming
    to
    C:\Users\dennis\AppData\Roaming

    Started up Notepad++, and all looks well so far.

  • Auto-update (UNIX tail) does not work

    Locked
    2
    1 Votes
    2 Posts
    3k Views
    dailD

    It only checks if the file is updated when the app regains focus.

  • Failed to save file not enough space on disk

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • "hide lines" command not working in a Macro

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    remduvR

    OK I found out by myself
    Some commands are not well supported by macros but it’s possible to add them manually via editing shortcut.xml file

    see n++ doc : http://docs.notepad-plus-plus.org/index.php/Editing_Configuration_Files#.3CMacros.3E

    following threads if needed
    http://stackoverflow.com/questions/362444/how-to-write-macro-for-notepad
    http://stackoverflow.com/questions/21194367/notepad-shortcut-for-new-open-containing-folder-in-menu-commands

    In my case I wanted code “44042” which is “Hide Lines” in the menu (used Resource Hacker to check the menu entry code).

    excerpt of my new shortcuts.xml file :
    <Macros>
    <Macro name=“test RDUV” Ctrl=“no” Alt=“yes” Shift=“yes” Key=“84”>
    <Action type=“2” message=“0” wParam=“44042” lParam=“0” sParam=“” />
    </Macro>

  • How do I change the defaults

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Peter WilliamsP

    Thanks Jim - that works great whilst reviewing the document on-line but doesn’t change the printed output remains the same - I guess Courier 10.

    Just like to have ‘flexibility’ to change font & size and save so that I could select a PREFERENCE. I have managed to change Portrait to Landscape in this mode.

    I would have anticipated this to so such an obvious requirement but just haven’t managed to find

  • Keyboard shortcut to unfold all levels under the current node?

    Locked
    2
    0 Votes
    2 Posts
    15k Views
    guy038G

    Hello, Anon Craigs

    Yes, indeed, there are shortcuts for the behaviour that you would like to :-))

    The DEFAULT main rules about Folding/Unfolding are :

    A) The classical menu options, in the View tab, or the SHORTCUTS actions :

    Fold All Levels ( ALT + 0 )

    Unfold All Levels ( ALT + SHIFT + 0 )

    Fold CURRENT Level, keeping the state of its sub-levels UNCHANGED ( Folded / Unfolded ) ( ALT + CTRL + F )

    Unfold CURRENT Level, keeping the state of its sub-levels UNCHANGED ( Folded / Unfolded ) ( ALT + CTRL + SHIFT + F )

    Collapse Level N, keeping the state of ALL the sub-levels UNCHANGED ( Folded / Unfolded ) ( ALT + Key N )

    Uncollapse Level N, keeping the state of ALL the sub-levels UNCHANGED ( Folded / Unfolded ) ( ALT + SHIFT + Key N )

    B) The MOUSE gestures :

    Single LEFT click, on a [-] symbol, fold the CURRENT level, keeping the state of ALL the sub-levels of the CURRENT level
    ( Folded / Unfolded )

    CTRL + single LEFT click, on a [-] symbol, fold the CURRENT level, as well as ALL the sub-levels of the CURRENT level, till the INNEST level

    Single LEFT click, on a [+] symbol, unfold the CURRENT level, keeping the state of ALL the sub-levels of the CURRENT level
    ( Folded / Unfolded )

    CTRL + single LEFT click, on a [+] symbol, unfold the CURRENT level, as well as ALL the sub-levels of the CURRENT level, till the INNEST level

    Note : For this last action, you may, also, use the mouse gesture : SHIFT + single LEFT click, on the [+] symbol

    Best Regards,

    guy038