• Bug: Find in Files opens new copy

    4
    2 Votes
    4 Posts
    1k Views
    Sarah NorthwayS

    Confirm I see the issue you’re describing in 7.5.7 (unsaved changes cause clones to de-link). This is definitely part of my problem.

    But I just realized my issue with find-in-files opening a new de-linked copy is due to windows junctions. I’d somehow opened the files with the actual location then was searching via the junction folder. Notepad++ probably has no way of knowing it’s a symbolic link to the same file. Symlinks are trouble. :/

  • symlink. error in syntax

    Locked
    2
    0 Votes
    2 Posts
    854 Views
    Claudia FrankC

    @Andrey-Evgrafov

    it’s been a while since using windows but I’m in doubt that you can create a
    link from np.exe to notepad++.exe with additional parameters provided to
    notepad++ exe, can’t you?

    mklink c:\windows\system32\np.exe “c:\program files (x86)\Notepad++\notepad++.exe”

    should work as long as np.exe is not the internal MS notepad because as far as I’m aware MS protects it default application since Windows 10.
    But as already said, I’m not up to date anymore - maybe it is working again.
    Hopefully enough info to get your problem solved.

    Cheers
    Claudia

  • last notepadpp version that supports textfx

    Locked
    2
    0 Votes
    2 Posts
    821 Views
    Scott SumnerS

    @Rodrigez-Yaves

    All 32-bit versions of Notepad++ support TextFX AFAIK. Maybe you are running 64-bit N++, in which case I don’t think TextFX exists?

  • Learning REGEX,, New

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    Jeff RaymondJ

    Thanks @Terry R

    Example

    Jeff(1234)
    Jeff(JeffIsJeff)
    Jeff(JeffIsntJEff)
    Jeff
    Jeffrey

    I wanted the first three removed. Your example worked.

    And Scott, thanks for the advice. I am a long time user, but I really had no idea how powerful this tool is! I will read your link. Thanks!

  • Multiple words in one line to separate lines

    Locked
    3
    0 Votes
    3 Posts
    913 Views
    dedsec24D

    @Claudia-Frank
    Thanks a lot
    It works.

  • can someone please help me with Parent, root node making

    Locked
    2
    0 Votes
    2 Posts
    836 Views
  • parsing data with various case

    4
    0 Votes
    4 Posts
    2k Views
    Jeff RaymondJ

    Scott, that worked. I am not a developer but Ive used REGEX in old school REXX

    THANKS!

  • Copy/Paste issue into Excel

    3
    0 Votes
    3 Posts
    2k Views
    Jeff HaasJ

    Thanks for the suggestion. After the usual searching Google and finding useless answers, screaming, throwing the computer out the window, etc, I rebooted Windows. Problem mysteriously went away. Arrggh!

  • Russian does not work with xml from APIs folder

    Locked
    1
    0 Votes
    1 Posts
    519 Views
    No one has replied
  • Cannot "save as type" in user defined language

    3
    1 Votes
    3 Posts
    983 Views
    René ScheibeR

    Seems as I was even more clueless than I thought. I totally forgot about adding the ending to the file by hand. It has worked now. Thanks a lot

  • File association and language association

    2
    0 Votes
    2 Posts
    4k Views
    YvesMPY

    Hi,
    menu and choice name will not be accurate in my answer because I’m not on an English installation, but I guess it will be close enough
    to open all files with a given extension with Notepad++ by double click, right click on such a file in the file explorer, choose properties, and select Notepad++ as the application for opening (you might need to give the full path to the binary).
    To tell Notepad++ to apply a language to an extension, go to menu list Parameters, choose Syntax coloration, select the target language in the panel, and type your extension in the fields on the bottom (on my install only two choices). And then of course save and apply.

  • how to remove these tips

    Locked
    1
    0 Votes
    1 Posts
    606 Views
    No one has replied
  • Troubles while creating a custon functionList.xml

    Locked
    2
    0 Votes
    2 Posts
    840 Views
    Andrea Del PreteA

    I forgot to add an image of how the function list parses the file with the configuration above:

    https://pasteboard.co/HtPeByg.png

  • Style Configurator: Background color for matching words

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Ronald-Fischer

    I think the “differences” you are seeing are when the two backgrounds are in effect together–could this be right? For example if you double-click a word (or click+drag select an entire word), you get the “selection” background color as well as the Smart Highlighing color…at the same time. This looks like a third color, but it really isn’t. Of course, maybe I’m misunderstanding…

    But the general answer…to this question… :

    Can I somewhere change the colours of these backgrounds?

    …is:

    See Settings (menu) -> Style Configurator… -> Global Styles and then:

    Selected text colour

    and

    Smart Highlighting

    …adjust each one’s Background colour to your liking…

  • Code documentation

    Locked
    1
    0 Votes
    1 Posts
    643 Views
    No one has replied
  • [JS/ES6] Template string syntax

    Locked
    1
    1 Votes
    1 Posts
    913 Views
    No one has replied
  • Finding sentences with open parenthesis that and not closed

    Locked
    14
    0 Votes
    14 Posts
    3k Views
    guy038G

    Hi, @Robin-cruise and All,

    Of course, you may add these 3 look-aheads, consecutively, after the litteral \) ending parenthesis, as you did :

    (?!;)(?![\}])(?![\{])

    Indeed, while evaluating each condition, in each look-ahead, the regex engine location does NOT change ( It is just between the ) and its next character ! )

    However, you can, also, use the unique look-head (?![;{}]) ! In addition, when inside a character class [....], the { and } braces are just literal characters :-))

    Recall :

    Inside a character class [....], 4 characters, only, have a special meaning :

    The character ^, which must be at any position but the first, to be considered as literal or at any position if preceded with the \ escape symbol

    The character ], which must be the very first character, after ], to be taken as literal or at any position if preceded with the \ escape symbol

    The character -, which must be at the very beginning or at the the very end of the character class to be considered as literal or at any position if preceded with the \ escape symbol

    The character \, which can be at any position of the character class, if preceded, itself, with an other \ escape symbol, to be taken as a literal character

    All the other chracters, inside a character class [....], are just literal chars !

    To sum up, assuming an unique block (.....) per line, the regex ^[^(\r\n]*\K\)(?![;{}])|\((?!(?-s).*\)) would find :

    The ending ) parenthesis, if not followed with a ;, a } or a { character AND if a ( parenthesis has not been found, before, in current line

    The starting ( parenthesis, if a ) parenthesis cannot be found, further on, in current line

    Cheers,

    guy038

  • How to increase font size in search result window

    Locked
    7
    0 Votes
    7 Posts
    4k Views
    Scott SumnerS

    @guy038

    I tried a different keyboard and now the numpad shortcuts are working for the Find result panel.

    While I was experimenting I noticed that even if I change the key assignment to SCI_ZOOMIN, SCI_ZOOMOUT, and SCI_SETZOOM in the Shortcut Mapper, only the original numpad shortcuts work in the Find result panel. I’m not surprised by this, just something to note…

    Since I have a wheel on my mouse, I will just continue changing the zoom level in and out (of the two views and the find-result panel) that way. :-)

  • Replace text that ends with number

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    guy038G

    Hi, @anass-chawki, and All

    Ah, OK ! The changes to do are not that important ;-))

    From your last example, I, then, supposed that the match is the shortest range of characters between :

    The literal string live/

    A string made up of, at least, five consecutive digits

    So, my two previous search regexes become :

    SEARCH (?-s)(?<=live/).+?(?=/\d{5,})

    and :

    SEARCH (?-s)live/.*/([0-9]\d{5,})

    Cheers,

    guy038

    P.S. :

    I updated my two previous replacement regexes, which were misspelled !

    The regexes look for the shortest non-empty range of characters ( .+? ), between the two limits, to avoid a wrong match against this kind of data :

    http://mywebsite.net:8080/live/JHsN4SGBS7/2MOLFqluEk/102381.ts|user-agent=VLC/2.2.6 /123456LibVLC/2.2.6.