• visualisation

    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Francis-BUCAMP

    not sure what you are talking about, which xml tree do you refer to?
    A special plugin?

    Cheers
    Claudia

  • Tweak natively supported language lexing

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    gstaviG

    Settings -> Style Configurator
    Language: javescript
    Style: keyword
    User-defined keywords: let
    Save & Close

  • deplace a block to an other place

    27
    0 Votes
    27 Posts
    17k Views
    guy038G

    Hi, All,

    I’m back for additional information, about lazy, greedy and possessive quantifiers. it’s fundamental to, correctly, understand the differences, between these 3 types of quantifiers !

    So, let’s consider the simple text 12345ABCDE, in a new tab

    How the regex engine interprets, for instance, the regex \w{1,10}[A-Z]{5}, with the greedy quantifier {1,10} ?. Well :

    It, first, tries to match the LONGEST range of \w => 10 Word characters. But, the part [A-Z]{5} CANNOT match anything

    Then, it backtracks and tries the first 9 Words characters. Again, the part [A-Z]{5} does NOT match the E letter

    Then, it backtracks and tries the first 8 Words characters. Again, the part [A-Z]{5} does NOT match the DE letters

    Then, it backtracks and tries the first 7 Words characters. Again, the part [A-Z]{5} does NOT match the CDE letters

    Then, it backtracks and tries the first 6 Words characters. Again, the part [A-Z]{5} does NOT match the BCDE letters

    Then, it backtracks and tries the first 5 Words characters. This time, the part [A-Z]{5} DOES match the ABCDE letters

    => After the backtracking phase, all the text is matched and selected !

    Now, how the regex engine interprets the regex \w{1,10}?[A-Z]{5}, with the lazy quantifier {1,10}? ?

    It, first, tries to match the SHORTEST range of \w => 1 Word character. But, the part [A-Z]{5} CANNOT match the 2345ABCDE string

    Then, it backtracks and tries the first 2 Words characters. Again, the part [A-Z]{5} does NOT match the 345ABCDE string

    Then, it backtracks and tries the first 3 Words characters. Again, the part [A-Z]{5} does NOT match the 45ABCDE string

    Then, it backtracks and tries the first 4 Words characters. Again, the part [A-Z]{5} does NOT match the 5ABCDE string

    Then, it backtracks and tries the first 5 Words characters. This time, the part [A-Z]{5} DOES match the ABCDE letters

    => After the backtracking phase, all the text is matched and selected !

    Note : Instead of the English werb backtrack, the verb fortrack would be more adapted ! Sorry, English isn’t my mother tongue !

    Finally, how the regex engine interprets the regex \w{1,10}+[A-Z]{5}, with the possessive quantifier {1,10}+ ?

    It, first, tries to match the LONGEST range of \w => 10 Word characters. But, the part [A-Z]{5} CANNOT match anything

    Now, the normal process would be to backtrack. But this action is forbidden, due to the possessive quantifier ! In other words, once a match has been found, for the first part \w{1,10}+, the following parts of the regex must match the remaining of the text. But, as the first regex part have consumed all the text, the part [A-Z]{5} will NEVER match anything !
    So, the overall match fails and you get the normal message Find: Can’t find the text “\w{1,10}+[A-Z]{5}”

    Using, again, the same example 12345ABCDE, in a new tab, it’s easy to verify that :

    The regex \w{1,10} matches the longest Word characters range => The whole string 12345ABCDE is matched

    The regex \w{1,10}? matches the shortest Word characters range => The 1 Word character is matched, then the 2 digit and so on…

    The regex \w{1,10}+ matches the longest Word characters range => The whole string 12345ABCDE is matched, too !

    So, to sum up, here is, below, a list of all the quantifiers :

    GREEDY quantifiers : * ( = {0,} ) + ( = {1,} ) ? ( = {0,1} ) {n} {n,} {m,n} LAZY quantifiers : *? ( = {0,}? ) +? ( = {1,}? ) ?? ( = {0,1}? ) {n}? {n,}? {m,n}? POSSESSIVE quantifiers : *+ ( = {0,}+ ) ++ ( = {1,}+ ) ?+ ( = {0,1}+ ) {n}+ {n,}+ {m,n}+

    Remark : The two {n}? and {n}+ syntaxes, although correct, are useless, as the syntax {n} could be qualified as an EXACT quantifier !

    Best Regards,

    guy038

  • Add 'G1' to the start of each line.

    Locked
    3
    0 Votes
    3 Posts
    16k Views
    Cnc BuilderC

    Many thanks did just what I needed great help :)

  • Order Plugin Menu Items

    7
    0 Votes
    7 Posts
    5k Views
    dailD

    @Ahu-Lee

    Instead of generically stating it doesn’t work, you will have to provide more details to even attempt to figure out why it isn’t sorted for you. Because I’m using v7.4.2 and it is working fine for me.

  • Session File Corrupted or Invalid Error

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    decodermanD

    Use the File -> Load session to find out which file it loads, without loading it. It opens the “open file” window.

    Then close NPP and rename the file and open NPP again.
    This might work. If it does, delete the renamed file.

  • Trouble making a functionList parser for MATLAB

    29
    0 Votes
    29 Posts
    19k Views
    Per IsaksonP

    @MAPJe71

    I’ve finally uploaded some <parser>-elements to the Matlab File Exchange.

  • NppFTP has stopped uploading when Ctrl+S or Save icon clicked

    2
    0 Votes
    2 Posts
    2k Views
    Pete NorrisP

    I think I may have solved my own problem.

    I had several (6 or 8) files in the Notepad++ editor. Some of the files had been open inside the editor for several weeks.

    I closed all of the files, uninstalled Notepad++, then did a clean installation. It seems to be working okay now.

    Evidently, leaving open files in Notepad++ for weeks caused something to get clogged up.

    One of the mods can mark this thread resolved if they like.

  • Does anyone know what this line is?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    decodermanD

    It’s the Vertical Edge and it marks the column.
    This is a visual help when coding.
    Settings/Preferences/Editing, the setting is in the center of the pop-up.

  • Notepad++ Unresponsive on being maximized

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @陳同

    does this happen also if no plugins are installed?
    To test you might run npp with -noPlugin switch or temporarily rename plugin directory.
    If this doesn’t help, please post you debug-info which is available under ? menu.

    Cheers
    Claudia

  • Newbie - How to apply file extension formatting when opening a .js file

    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Dickie-Davies

    check if another language has occupied the .js extension.
    Either use the Dialog Settings->Style Configurator and step through the languages
    or open langs.xml and see which language uses the extension.

    Cheers
    Claudia

  • Trouble Setting Up NppExec to Learn C++

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Steve Daley175S

    Thank you, Jim Dailey, that did the trick. I see why that worked now that I look at it. I should have considered that. The forum post that I saw seemed to indicate that the original code that I had without the extra cmd /c should have worked. Now I’m off to learn C++ which looks to be a challenge for an old dog.

  • How to convert a textfile and really show german umlaute?

    3
    0 Votes
    3 Posts
    4k Views
    Ben S.B

    It works.
    Thank you

  • Ctl+tab not working

    2
    0 Votes
    2 Posts
    1k Views
    Per IsaksonP

    @cjmac27
    There are a couple of check-boxes, which might need checking: Settings,Preferences,MISC., “Document Switcher”, check Enable and check Enable MRU behaviour.

  • tabs selected when doubleclicking on words

    8
    0 Votes
    8 Posts
    3k Views
    HotmelH

    @Claudia-Frank

    Oh. After a few days the problem disappeared. Exactly.

    It seems that the plugins haven’t been updated. Nothing plugins was switched off. Npp ver 7.3.3 remained as before.

    Mystic.
    Perhaps the problem disappeared after reseting “Preferences -> Delimiter” and restart Npp.

  • Run Command Error Notepad++

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Arnav71

    If I’m understanding correctly, why not just make a second version of that command with “clean” embedded into it?

  • Custom Language not recognized

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Jim DaileyJ

    @Picasso-CT

    Zebra should appear BEFORE eagle. That is, Upper-case letters are lexically less than lower-case letters.

  • 0 Votes
    7 Posts
    3k Views
    Scott SumnerS

    @Contafisc-Empresarial

    Unless I am misunderstanding what you are wanting to do (very possible!), I’d say that changing [^0]. to [^\s0]{2} does what you need. It means: for the next two positions, match as long as both positions are not some combination of:

    whitespace (the \s) zero (the 0)
  • Feature suggestion: tab-specific display settings

    Locked
    1
    0 Votes
    1 Posts
    908 Views
    No one has replied
  • Change main single word select color when smart highlighting enabled?

    Locked
    1
    0 Votes
    1 Posts
    990 Views
    No one has replied