• Login
Community
  • Login
  1. Home
  2. Help wanted · · · – – – · · ·
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • J

    Block commenting doesn't seem to be working properly

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Jul 8, 2015, 12:49 AM
    Jul 8, 2015, 12:49 AM
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • D

    Newbie needs helps

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Jul 7, 2015, 10:35 AM
    Jul 1, 2015, 5:23 PM
    0 Votes
    5 Posts
    5k Views
    G Jul 7, 2015, 10:35 AM

    Hello Daniel and Andreas, and All,

    As soon as you’re looking for couples (), [], {}, <>… in a text, containing unlimited nested respective couples (), [], {}, <>, you absolutely need to use a very strong feature of PCRE regex : the recursive patterns. If you don’t, it quite impossible to handle any arbitrary nesting depth !

    Generally speaking, you automatically create a recursive pattern, when you add a recursive call to a group, located INSIDE the sub-pattern whose it makes a reference.

    For instance, let’s suppose the general regex ....(....(?n)....).... and that the showed group is the group n. Then, the form (?n), located inside the group n, is a recursive call to that group n

    Concerning your problem, Daniel, the solution is the regex, below :

    (^([^()\r\n])*(\(((?2)|(?3))*\))(?2)*\r?\n)+

    You may use the PCRE_EXTENTED option (?x) to get the regex :

    (?x) ( ^ ([^()\r\n])* ( \( ( (?2) | (?3) )* \) ) (?2)* \r?\n )+

    These regexes look for any consecutive sequence of entire lines, with their End of Line character(s), whose each of them :

    Is, of the general form, ....(.......).....

    Contents well-balanced nested couples (), inside the upper-level block (....)

    So, Daniel, if you leave the replace field empty, you’ll get, ONLY, the lines where the number of opening round brackets is different from the number of closing round brackets, or lines without any round bracket at all !

    For instance, these regexes, above, don’t match any of these following lines :

    abcdef
    abc(def
    a(b)def)ghi
    a(bc(((d))ef)g

    But they do match, in one go, the block of these seven following lines, with well-balanced couples of () :

    abc(de)f
    (a(bdef)ghi)
    a(bc(((d))e)f)g
    a()bc
    ((ab(cde((fgh)ij)kl))mno)pqr
    ab(c(de(fgh(ijk))lm)((()))n()()op)qrs

    In short :

    The form (?2) is a NON recursive call to the sub-pattern [^()\r\n]

    The form (?3) is a recursive call to the sub-pattern \( ( (?2) | (?3) )* \)

    The anchor ^, at beginning and \r?\n, at the end, allow to cover an entire line, which can be repeated, due to the final + sign, applying to group 1

    The opening and closing round brackets need to be escaped \( and \). Just notice that escaping round brackets, inside the class character [....], at the beginning of the regex, is not mandatory !

    Inside the block \(....\), the regex looks for any sequence, even empty, of :

    (?2) Characters different from round brackets and from End of Line characters OR (?3)Nested other blocks of round brackets (....)

    and so on…

    I’ll give you any further information, about the recursion concept, if anyone needs to !

    Best regards,

    guy038

    P.S.,

    To end, I give you an other regex, with a recursive pattern (?2), which can match the general case of the string ....(.........)............(..)...(....)...........

    So, this regex, below, matches the tallest sequence of characters, even on several lines, which contains as much as opening round brackets than closing round brackets, with well-nested and/or juxtaposed other blocs (....) :

    ([^()]*(\(([^()]|(?2))*\))[^()]*)+

    With the PCRE_EXTENTED option (?x), we get the regex :

    (?x) ( [^()]* ( \( ( [^()] | (?2) )* \) ) [^()]* )+

    And, if you don’t think to use the group 1, in the replacement part, with the backreference \1, you may set group 1, as a non-capturing group, with the syntax ?:, in :

    (?:[^()]*(\(([^()]|(?1))*\))[^()]*)+

    (?x) (?: [^()]* ( \( ( [^()] | (?1) )* \) ) [^()]* )+

    Of course, because of the first non-capturing group, the old recursive group 2 becomes the recursive group 1

  • C

    notepad++ status bar scale issue

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Jul 7, 2015, 6:43 AM
    Jul 3, 2015, 3:59 AM
    0 Votes
    3 Posts
    4k Views
    G Jul 7, 2015, 6:43 AM

    Do you have your Display settings set to high DPI? I’m afraid NP++ is not always aware of this (at least not on the statusbar).

  • B

    Is there a NP++ for Linux?

    Watching Ignoring Scheduled Pinned Locked Moved linux
    3 Jul 7, 2015, 6:19 AM
    Jul 6, 2015, 9:27 AM
    0 Votes
    3 Posts
    4k Views
    W Jul 7, 2015, 6:19 AM

    NP++ runs fine on Wine.

  • B

    Save first line as filename

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Jul 7, 2015, 5:58 AM
    Jul 5, 2015, 3:53 AM
    0 Votes
    2 Posts
    3k Views
    C Jul 7, 2015, 5:58 AM

    Hello,
    you can use the python script to do that.

  • M

    Offline plugin installation

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Jul 6, 2015, 5:20 PM
    Jul 6, 2015, 11:06 AM
    0 Votes
    2 Posts
    24k Views
    D Jul 6, 2015, 5:20 PM

    There is not really a “list”. The plugins are just DLLs (and any associated files). If you copy over that entire folder it should work.

  • S

    UTF-8 file with emoji is not recognized

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Jul 6, 2015, 1:44 PM
    Jul 6, 2015, 1:44 PM
    0 Votes
    1 Posts
    6k Views
    No one has replied
  • G

    Notepad++ crashes with virtual desktop manager

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Jul 6, 2015, 1:25 PM
    Jul 3, 2015, 7:45 AM
    0 Votes
    3 Posts
    4k Views
    G Jul 6, 2015, 1:25 PM

    Hi,
    I checked the Event Viewer and found that Notepad++
    crashed upon unloading the DSpellCheck.dll. So I uninstalled the spell check plugin.
    Then Notepad++ crashed in its own exe. So I uninstalled Notepad++ completely, and manually removed what remained in the program folder (this I didn’t do last time I re-installed).
    Then I installed it again. And now it doesn’t crash anymore. I hope it stays this way…
    Sorry for bothering you with this.
    Thanks anyway,
    Gerhard

  • markrdeaconM

    Doc Switcher keyboard shortcut

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Jul 6, 2015, 12:45 PM
    Jul 6, 2015, 12:45 PM
    1 Votes
    1 Posts
    7k Views
    No one has replied
  • Han KortekaasH

    How to get the keywords list in an associated file of MyUserDefinedLanguage

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Jul 6, 2015, 10:41 AM
    Jul 6, 2015, 10:41 AM
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • sukiletxeS

    Accessibility problems

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Jul 5, 2015, 9:15 PM
    Jul 3, 2015, 9:29 AM
    0 Votes
    5 Posts
    6k Views
    sukiletxeS Jul 5, 2015, 9:15 PM

    Here it is. https://dl.dropboxusercontent.com/s/8thnimf0isn12ye/recording.mp3?dl=1
    Thanks.

  • F

    bad search result

    Watching Ignoring Scheduled Pinned Locked Moved patchocom
    1 Jul 5, 2015, 1:39 PM
    Jul 5, 2015, 1:39 PM
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • G

    Search and replace - Increment/decrement with wildcards

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Jul 4, 2015, 8:10 PM
    Jul 4, 2015, 8:10 PM
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • František BangoF

    opening curly bracket { issue

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Jul 3, 2015, 5:38 PM
    Jul 3, 2015, 12:07 PM
    0 Votes
    2 Posts
    5k Views
    jonandrJ Jul 3, 2015, 5:38 PM

    If I understand this correctly:

    Ctrl-Alt-B is } and Ctrl-Alt-N is { on a Slovak keyboard These letters can’t be typed in N++.

    By default, Ctrl-Alt-B is mapped to Search -> Select all between mapping braces. Ctrl-Alt-N is not mapped to anything by default, but it has been mapped locally anyway (somehow). What happens if you remove these mappings in the Shortcut mapper (Settings dialog)? I guess the alternative is that N++ thinks all Ctrl-Alt combinations as shortcuts.

  • Robin TremblayR

    Misinterpreted file

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Jul 3, 2015, 5:15 PM
    Jul 3, 2015, 3:28 PM
    0 Votes
    2 Posts
    3k Views
    jonandrJ Jul 3, 2015, 5:15 PM

    N++ tries to autodetect the character encoding in version 6.5.5 and later. It can be turned off in Settings -> Preferences -> Misc.

  • Jonas Stene PettersenJ

    Open relative links with right-click

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Jul 3, 2015, 2:09 PM
    Jul 3, 2015, 8:50 AM
    0 Votes
    2 Posts
    5k Views
    jonandrJ Jul 3, 2015, 2:09 PM

    It is very difficult to detect paths in free text since paths can contain spaces. Such a feature would have a lot of false positives which would annoy users.

    In this particular case where the format is known you could write a Python script which parses the line and opens the file. Then you could tie the script to a shortcut key.

    http://npppythonscript.sourceforge.net/docs/latest/

  • R

    Why is the text anti-aliased in 6.7.9.2

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Jul 3, 2015, 1:08 PM
    Jul 3, 2015, 4:49 AM
    0 Votes
    2 Posts
    3k Views
    jonandrJ Jul 3, 2015, 1:08 PM

    See this thread: https://notepad-plus-plus.org/community/topic/9/text-anti-aliased-since-6-7-9-2

  • A

    Synchronize Scrolling with Word Wrap

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Jul 3, 2015, 5:36 AM
    Jul 3, 2015, 3:16 AM
    0 Votes
    2 Posts
    4k Views
    A Jul 3, 2015, 5:36 AM

    Also, I’ve encountered another issue when using word wrap. If the file is long enough to require a scroll bar and my view is not at the top of the file, any time I switch to a different window, then come back to NP++, the view automatically scrolls to the very top of the file, and does so rather slowly. For example, when the file is over 15,000 lines, it takes about 15 seconds to finish scrolling to the top before I am able to start scrolling back down to search for my location again.

    This only occurs when word wrap is on, and only started occurring when I updated to the new version (6.7.9.2). Since it just started occurring after I updated the program, I’m assuming that it is either a new default setting that I am unable to find and disable, or a new bug introduced in this version.

    I find this new behavior to be quite annoying and would like to disable it. If it is a default setting change, where is the setting to turn off the automatic scrolling to the top of the file? If it is a bug introduced in this version, what is the easiest method I could use to revert the program to the previous version in which this issue did not occur?

  • A

    MSVC compilation

    Watching Ignoring Scheduled Pinned Locked Moved
    6 Jul 3, 2015, 4:40 AM
    Jun 28, 2015, 8:45 PM
    0 Votes
    6 Posts
    6k Views
    A Jul 3, 2015, 4:40 AM

    installed MSVC2015. now it compiles.

  • EldawE

    How to use toolbar buttons: First, Previous, Next, Last

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Jul 2, 2015, 7:57 PM
    Jun 29, 2015, 7:16 PM
    0 Votes
    5 Posts
    7k Views
    YaronY Jul 2, 2015, 7:57 PM

    I’m glad I could help.

    Regards.

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors