• Help converting Notepad++ format to Pythonscript

    16
    0 Votes
    16 Posts
    4k Views
    guy038G

    Hi, @andrew-clark, @scott-sumner, @claudia-frank and All

    Ah :-(( I should have tested my idea of changing (?-s) into (?s), before posting. Actually, in case of multi-lines range of characters, between parentheses, the suitable regex S/R is , rather :

    SEARCH (\([^()]+?\))|\x20

    REPLACE \1

    Hope it’s the right one, this time :-D

    Cheers

    guy038

  • 1 Votes
    3 Posts
    1k Views
    Scott SumnerS

    @Ramiro-Tell

    If I’m interpreting your request correctly, then putting the line below in contextMenu.xml will do what you want for ONE of the blank operations. Not sure if there is a way to get them ALL at once with a single line… anyway, easy enough to add n lines like this for the n functions you frequently use from blank-operations:

    <Item MenuEntryName = "Edit" MenuItemName = "Trim Trailing Space" FolderName = "Blank Ops -->" ItemNameAs = "NUKE Trailing spaces" />

    Yields the following in the right-click context menu:

    Imgur

  • 0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @Vismund-Cygnus

    How about closing any open clipboard file first before running your “function that saves clipboard text to a file”? Seems like a lot of your problem would then not exist?

  • 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
    876 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
    837 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
    940 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
    874 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
    540 Views
    No one has replied
  • Cannot "save as type" in user defined language

    3
    1 Votes
    3 Posts
    1k 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
    628 Views
    No one has replied
  • Troubles while creating a custon functionList.xml

    Locked
    2
    0 Votes
    2 Posts
    863 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
    659 Views
    No one has replied
  • [JS/ES6] Template string syntax

    Locked
    1
    1 Votes
    1 Posts
    935 Views
    No one has replied