• 0 Votes
    3 Posts
    2k Views
    TMuel1123T
    Hi Jim, I assumed the -l parameter as an override function for the detection of the language by the files extension. because if i try -lbash then it highlites it with the Bash code highlitning. If I use a *.din file it ofcause works, but then it uses the detection for the language of the file extension and i could omit the -l parameter. it is my intention to have the target.txt in my definition, because i dont want to have the highlight for all text files, but i ofetn open files which have the name target.txt, which i always want to have highlighted. Best regards TMuel
  • Comment Line Style not respected if first line of file

    Locked comment style bug
    1
    0 Votes
    1 Posts
    921 Views
    No one has replied
  • CFG file unreadable - gibberish

    Locked game files dat cfg gaming cfg file
    3
    0 Votes
    3 Posts
    4k Views
    Ulas YalcinU
    @Scott-Sumner ahh i see. that sucks T_T thanks!
  • How to keep only unique line

    Locked
    11
    1 Votes
    11 Posts
    5k Views
    guy038G
    Hi, @محمد-أشرف, @claudia-frank and All Ah, yes ! I forgot to tell that the last item of the list ( so the last 555 line , in your example) must be followed by a line-break ! Everything should be OK ! Cheers guy038
  • Superscript

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    MAPJe71M
    If you’re trying to superscript text in Notepad++: you can’t. If you’re editing HTML/CSS source code in Notepad++: you’re in the wrong forum.
  • Limitations on UDL?

    5
    0 Votes
    5 Posts
    2k Views
    Claudia FrankC
    @CatMeat The issue with lexing/parsing is always when having “glued” characters, means how can a lexer/parser know that 100.0f is really the number and not 100.0f; ? As UDL can only parse the given string and can’t really do any lexical analysis, as it don’t know the language, we need to tweak,hack around such complications. In the given case, I would use = as an open and semicolon as closing char in a delimiter which is setup with the same color as the default color and allowing nesting with numbers. But this could be that it breaks other things, may I ask which language you are trying to build? Cheers Claudia
  • 2 Votes
    4 Posts
    11k Views
    古旮
    Funny enough: another same question.
  • "Run" Doesn't work.

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS
    @Erick-Montes-de-Oca If you use close Chrome and then do (in Notepad++) Run (menu) -> Launch in Chrome and Chrome opens up then you are seeking help in the wrong place; this is only for Notepad++ issues and discussion, not what is wrong with your HTML code (or whatever). Please find a forum specific to that for further help.
  • Changing comment character in assembly

    comment line assembly
    5
    0 Votes
    5 Posts
    3k Views
    Dal BrarD
    6 months later, same problem still exists…
  • Notepad++/Octave 4.2.2

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Paste/Join Lines command

    Locked
    9
    0 Votes
    9 Posts
    4k Views
    Claudia FrankC
    @Austin-Dean-Combs if you still have access to the other computer, check which plugins are in use (debug-info under ?) and then see which one is missing on your computer. Cheers Claudia
  • notepad++ url processing cyrillic symbols

    29
    0 Votes
    29 Posts
    26k Views
    Александр КорженевскийА
    Maybe the developers can make a correction? What about to move definition of this regexp to config file? That anybody, who need to, can change it without recompilation! And update FAQ how to add support of national symbols to url recognation I very much hope that correction will be made.
  • 0 Votes
    1 Posts
    935 Views
    No one has replied
  • collapse everything except <h1>

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G
    Hello, @paweł-łabno and All, Not totally sure that is the right solution for you ! But let’s give it a try ;-)). I simply suppose that all your titles lay in a single line. So : Open one of your html files, in N++ Fold all the sections with the View > Fold All menu option or use the Alt + 0 shortcut ( NOT from the numeric keypad ! ) => The text collapses and you should see the <html> tag, only ! Then, open the Find dialog Search > Find… menu option or use the Ctrl + F shortcut Type in the regex (?-is)(?<=<h1>).*?(?=</h1>) , in the Find what: zone Select the Regular expression search mode Click on the Find All in Current Document button => At once, the Find result windows pops up, at bottom of the screen, with all the <h1>....</h1> titles ! Now, simply double-click, in the Find result window, on one of these results. Immediately : Your HTML file should expand the zone, containing the corresponding <h1>....</h1> title ;-)) All the title, between the boundaries <h1> and </h1>, is selected Best Regards guy038
  • auto search

    Locked
    1
    0 Votes
    1 Posts
    910 Views
    No one has replied
  • how to link the resource file with Nppexec?

    6
    0 Votes
    6 Posts
    2k Views
    Imdjs FXI
    SET local MSSDK = E:/Microsoft Visual Studio 12.0/VC/Microsoft SDKs/Windows/v7.1A ENV_SET PATH =$(MSSDK)/bin/x64;$(SYS.PATH) SET local B_DIR = B:/$(NAME_PART) cmd /k chdir /d $(CURRENT_DIRECTORY) &rc /r /v /fo $(B_DIR).res $(NAME_PART).rc &EXIT //---------------------------------------------- I finally figure out how to complie the .rc file with the sepecify output directory
  • How to use "installed" icon?

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Steven BeederS
    Took me a moment to understand what you were saying but now I get it. That’s too bad. But now I know. Thanks for your response.
  • 0 Votes
    1 Posts
    908 Views
    No one has replied
  • search and replace for a newbie

    Locked
    16
    0 Votes
    16 Posts
    6k Views
    guy038G
    Hello, @barry-payne and All, Sorry to discuss about an already solved problem but I do think that your regex ^A.*110M00104(?!.*110M00104$) could be simply written : ^A.*110M00104 Indeed, given your text, these two regexes give the same results : all lines from A0000 till 110M00104 are matched ! A0000059700000001 000000012016101020161010NLEE 4 110M00104 DL2 Cross Roller Monthly PM A0000059700000001 000000012016101020161010NLEE 4 110M00104 A0000059700000001 000000012016101020161010NLEE 4 110M00104 SAFETY FIRST- USE LOCK OUT/TAG OUT PRIOR A0000059700000001 000000012016101020161010NLEE 4 110M00104 TO DOING THIS JOB A0000059700000001 000000012016101020161010NLEE 4 110M00104 A0000059700000001 000000012016101020161010NLEE 4 110M00104 Determine what energy sources will be A0000059700000001 000000012016101020161010NLEE 4 110M00104 locked out. (Electrical, Gas, Pneumatic, A0000059700000001 000000012016101020161010NLEE 4 110M00104 Hydraulic, Steam, Etc#) A0000059700000001 000000012016101020161010NLEE 4 110M00104 A0000059700000001 000000012016101020161010NLEE 4 110M00104 IF YOU ARE NOT SURE WITH THE ABOVE- SEE A0000059700000001 000000012016101020161010NLEE 4 110M00104 SUPERVISOR IMMEDIATELLY In your text, the string 110M00104 occurs once per line. So, once the first part ^A.*110M00104 has been matched, the negative look-ahead (?!.*110M00104$) is always true, because no more string 110M00104 occurs at the end of line ! Even if we change the last line, in such a way : A0000059700000001 000000012016101020161010NLEE 4 110M00104 110M00104 SUPERVISOR IMMEDIATELLY Either, the regex ^A.*110M00104 or your regex ^A.*110M00104(?!.*110M00104$), would match the string A0000059700000001 000000012016101020161010NLEE 4 110M00104 110M00104 If you, really, want to match a specific string ( for instance the string ABCD ) with the condition that no other string ABCD occurs, further on, in the same line, you should use the negative look-ahead (?!.*ABCD.*ABCD), evaluated, at beginning of the current line ! So, given the simple example text below : A000 Line 1 12345 ABCD Some text after A000 Line 2 12345 ABCD ABCD A000 Line 3 12345 ABCD A000 Line 4 12345 ABCD ABCD Test The 3 regexes, below, do not match the lines 2 and 4 , which contain the string ABCD, twice :-) ^(?!.*ABCD.*ABCD)A.*ABCD matches between A000 and the unique occurrence of ABCD ( Line 1 and 3 ) ^(?!.*ABCD.*ABCD)A.*ABCD(?=.) matches between A000 and the unique occurrence of ABCD, which does not end the line ( Line 1, only ) ^(?!.*ABCD.*ABCD)A.*ABCD(?=\R) matches between A000 and the unique occurrence of ABCD, which ends the line ( Line 3, only ) Of course, the four regexes, below, without the look-ahead, consider all the lines and, moreover : ^A.*ABCD matches between A000 and the last occurrence of the string ABCD ( Line 1 to 4 ) ^A.*?ABCD matches between A000 and the first occurrence of the string ABCD ( Line 1 to 4 ) ^A.*ABCD(?=.) matches between A000 and an occurrence of ABCD, which does not end the line ( Lines 1, 2 and 4 ) ^A.*ABCD(?=\R) matches between A000 and an occurrence of ABCD, which ends the line ( Lines 2 and 3 ) Best Regards, guy038 P.S. : I forgot to mention that the . matches newline option must be UNTICKED, of course !
  • Help: Lost all unsaved files, where could they be?

    Locked
    2
    0 Votes
    2 Posts
    8k Views
    dolphinkiteD
    Found the answer here: https://notepad-plus-plus.org/community/topic/14745/find-closed-temporary-files