• Multiple search terms replaced with multiple terms

    Locked
    17
    0 Votes
    17 Posts
    7k Views
    Claudia FrankC

    @Alan-Preda

    Alan, your welcome.
    You are right, this setting is set because I only work with utf-8 at all.
    Just to be sure, your question has been answered or is there something left?

    Cheers
    Claudia

  • 0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @A-Stod

    afaik, user defined languages don’t work with stylers and langs.xml.
    They reside in userDefineLang.xml.

    Cheers
    Claudia

  • Where is file with automatic syntax highlighting?

    6
    0 Votes
    6 Posts
    3k Views
    Pete NorrisP

    @Claudia Frank

    Claudia;

    Thanks! :)

  • How to highlight SVG instructions and attributes?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Raúl-Eduardo-Cárdenas-S.

    please be more specific. Which language? Why do you expect suggestions?
    What did you do to make suggestions working? etc…

    Cheers
    Claudia

  • How to remove duplicate row in Find result?

    5
    0 Votes
    5 Posts
    5k Views
    Casey CrockettC

    @guy038 Thank You! You went above and beyond.

  • Notepad++ crashed then style.css empty

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    natchlabN

    Ok this has been solved.
    If it happens for you, Notepad++ automatically save the current file in C:\Users\Name\AppData\Roaming\Notepad++\backup

    I feel reassured :D

  • Validate multiple XML files against one xsd?

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    MAPJe71M

    Use a command line tool like XMLStarlet.

  • Easy way to align lines from different files by line numbers and tabs

    5
    0 Votes
    5 Posts
    4k Views
    glossarG

    Hi guy!

    I’ve just started again from where I was. :) I have restarted the computer, but no luck! The chunk that I created to try contains 1 million lines and is 218 MB. I think Notepad (32 bit version) cannot send the data that big to the clipboard, even it could open the file. I have tried it with EditPad Lite without problem, so reinstalled the 64 version of Notepad, trading for the “Sort output only UNIQUE (at column) lines” function of the plugin TextFX, and the 64 version can handle it.

    Luckily, I have found a regex for removing duplicate lines (“^(.?)$\s+?^(?=.^\1$)”), so I don’t have to be cheeky asking for it. :)

    I have finally managed to go through the above steps, and it works as expected.
    Again, thank you for your help! I do appreciate it!

  • 0 Votes
    8 Posts
    3k Views
    Jakub ŠenkJ

    @Claudia-Frank

    make sense. This problem I have only for a couple weeks and on Windows 7. And I think that I tried change mouse with completely different one (different producer…) and I had the same problem. I don’t really know what cause this issue and I am sad because of that. I haven’t a similar problem with any other software.

    Thanks anyway.

  • User Defined Language: Comment & Number vs. Keywords Lists

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Jim DaileyJ

    @Christopher-Redmond

    Actually, I think you can define several #keywords in one delimiter style (separate them with spaces):

    Open = “#LASTCHANGE #OTHER #ANDMORE”
    Close = “((EOL)) ((EOL)) ((EOL))”

  • Fold line breaks after update to Notepad++ 7.2.2

    Locked
    8
    0 Votes
    8 Posts
    4k Views
    Claudia FrankC

    @MU-Software

    you would need a plugin like python script or lua script to automate this task
    becasue it is not a general setting but per buffer setting. Each time you open
    a new c/cpp file the property needs to be set.

    A python version would look like this

    def setFoldProperty(): if editor.getLexerLanguage() == 'cpp' and editor.getProperty('fold.cpp.comment.explicit') != '0': editor.setProperty('fold.cpp.comment.explicit', '0') def callbackLANGCHANGED(args): setFoldProperty() def callbackBUFFERACTIVATED(args): setFoldProperty() notepad.clearCallbacks() notepad.callback(callbackBUFFERACTIVATED, [NOTIFICATION.BUFFERACTIVATED]) notepad.callback(callbackLANGCHANGED, [NOTIFICATION.LANGCHANGED])

    If you haven’t installed python script plugin already than I would suggest
    to download the msi from here instead using plugin manager.

    If you want to have this script executed each time you start npp you need to change the python script configuration from LAZY to ATSTARTUP and the content of this script needs to be in a file called
    startup.py.

    Note, both, c and cpp lexer are identified as cpp.

    Cheers
    Claudia

  • Can't read the filenames in the tabs.

    5
    0 Votes
    5 Posts
    3k Views
    gstaviG

    From the code it seems that NP++ uses an old API that is no longer recommended by Microsoft for getting tabs fonts.
    GetStockObject with:
    SYSTEM_FONT or DEFAULT_GUI_FONT.
    There is also lots of logic for calculating rectangle size and some references for DPI that may have side effects.
    Extreme resolutions are definitely an issue for “classic GUI” apps.

    Do you get font that is much smaller than Menu font?
    What version of Windows?

    I doubt that you can override it without modifying NP++ source code.
    If you play around by customizing Window fonts you may be able to modify it, hopefully without destroying other things.

    Some developer with similar screen should enhance the code sometime.

  • regex: Search operators (like google)

    5
    0 Votes
    5 Posts
    4k Views
    guy038G

    Vasile and All,

    Ah, of course, Vasile, your regex I love \w{1,6}+ car contains the part \w{1,6}+, with the quantifier {1,6}, followed by a + sign. It represents an atomic sequence. That is to say that, ONCE the regex engine matches the greatest possible amount of word characters , up to 6, it would NEVER backtrack, in order to satisfy, possibly, the remainder of the overall regex !

    Actually, your regex would just match the 6 following lines, below, with, only, ONE word ( of 1 to 6 letters ), between the words love and car

    I love car I love 1 car I love 12 car I love 123 car I love 1234 car I love 12345 car I love 123456 car I love 1234567 car

    Here are, below, TWO regexes, looking for a range of words, between TWO boundaries-words, let’s say, WORD_1 and WORD_2, which would be, both, separated by, at least, M words and NO more than N words :

    WORD_1(\W+\w+){M,N}\W+WORD_2 WORD_1([^\w\r\n]+\w+){M,N}[^\w\r\n]+WORD_2

    The first syntax may match over several consecutive lines

    The second syntax forces the regex engine to match the two boundaries-words WORD_1 and WORD_2, on a SAME line

    One example :

    Let WORD_1 be the article I

    Let WORD_2 be the name car

    Let M and N be the values 2 and 5

    So, the two resulting regexes are :

    I(\W+\w+){2,5}\W+car I([^\w\r\n]+\w+){2,5}[^\w\r\n]+car

    => The first syntax matches the two complete lines, first, then the lines, from 3 to 6

    => The second syntax matches, ONLY, a UNIQUE line, from 3 to 6, below :

    I car ! I love car ! I love this car ! I love this blue car ! I love this nice blue car ! I love this very nice blue car ! I love this gleaming and very nice blue car !

    I would like to point out a special regex construction, which may, sometimes, help to get powerful matches. It’s the part [^\w\r\n] !

    Indeed, I, originally, considered the classical syntax \W+, to match any range of NON-words characters, which occurs before a word. However, as the class \W is the opposite of the \w class, the NON-word \W may, also, match any EOL character, like \n or \r, leading, sometimes, to matches on two consecutive lines !

    So, to find out the second case, I built this NEGATIVE class [^\w\r\n], that considers a character, which is, both, NOT a Word character AND neither the \n nor the \r EOL character !

    An other example : the regex [^\W_a-z] is a kind of double-negation construction : It, finally, matches any Word character, except for the underscore ( _ ) and all the usual lower-case letters ( [a-z] ). In other words, this regex would match :

    Any digit or number-like symbol

    Any upper-case letter, accentuated or NOT

    Any accentuated lower-case letter, ONLY

    Cheers,

    guy038

  • Notepad++ crashes my machine!

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Some Unicode characters disappear

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Dennis-M-Marks

    as you writing java script and creating web pages I would say you need
    to read this.

    Cheers
    Claudia

  • Copy File Name BY Dragging

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @William-Sunderman

    afaik, no - but are you sure you want to use npp to generate a file containing list of files?
    I don’t know but a simple dir command could do it as well I guess. Or are your files
    that different that it can’t match a certain filter?

    dir /B *.exe > c:\list_of_exes.txt

    Maybe create the list with the dir command and then use regex with npp
    to filter the ones you want?

    Cheers
    Claudia

  • Windows not recognizing Notepad++

    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @Placeholder

    permission issue ??
    What if you run Default program and set npp for the extension?
    Or what about running npp as administrator and do assignment via Settings->Preferences->File Association?

    Cheers
    Claudia

  • Lines in Notepad++

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello, Jivko,

    Once, you get all your results in the Find result windows

    Select all your results, in the Find Result panel

    Right click, inside the Find Result panel

    Choose the Copy option

    Open a New tab

    Paste all the lines of your original text, which match your search

    => The string “Line ##:”, at beginning of each line, should not be present !

    Best Regards,

    guy038

  • need starter guides please if someone can help thx!

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @ניר-מולא

    Wrong place to ask that. Try…Google…?!!

  • 0 Votes
    4 Posts
    2k Views
    Claudia FrankC

    @Tal-Segal

    I’m under the impression that you are looking for something like e.g. snippets plugin, could this be?

    Cheers
    Claudia