• Compare multiple XML files

    9
    0 Votes
    9 Posts
    30k Views
    Claudia FrankC

    @Alexandru-Adrian-Meroșu

    another free app is diffmerge,
    maybe useful to you.

    Cheers
    Claudia

  • SWAPPING OUT THEMES

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Dan-Padric

    I assume the easiest would be to use a zipped notepad++ package and install in
    two different places but if I’m right you are also aware of python script plugin and
    another solution would be to do something like this

    def change_styles(): # editor.styleResetDefault() editor.styleSetBack(0, (30, 30, 30)); editor.styleSetFore(0, (200, 200, 200)); editor.styleSetBack(1, (30, 30, 30)); editor.styleSetFore(1, (87, 166, 74)); editor.styleSetBack(2, (30, 30, 30)); editor.styleSetFore(2, (255, 128, 128)); editor.styleSetBack(3, (30, 30, 30)); editor.styleSetFore(3, (214, 157, 133)); editor.styleSetBack(4, (30, 30, 30)); editor.styleSetFore(4, (214, 157, 133)); editor.styleSetBack(5, (30, 30, 30)); editor.styleSetFore(5, (54, 125, 198)); editor.styleSetBack(6, (30, 30, 30)); editor.styleSetFore(6, (200, 200, 200)); editor.styleSetBack(7, (30, 30, 30)); editor.styleSetFore(7, (200, 200, 200)); editor.styleSetBack(8, (30, 30, 30)); editor.styleSetFore(8, (138, 138, 255)); editor.styleSetBack(9, (30, 30, 30)); editor.styleSetFore(9, (250, 205, 34)); editor.styleSetBack(10,(30, 30, 30)); editor.styleSetFore(10, (255, 128, 0)); editor.styleSetBack(11,(30, 30, 30)); editor.styleSetFore(11, (141, 166, 206)); editor.styleSetBack(12,(30, 30, 30)); editor.styleSetFore(12, (87, 166, 74)); editor.styleSetBack(13,(30, 30, 30)); editor.styleSetFore(13, (214, 157, 133)); editor.styleSetBack(14,(30, 30, 30)); editor.styleSetFore(14, (0, 97, 194)); editor.styleSetBack(15,(30, 30, 30)); editor.styleSetFore(15, (200, 200, 200)); editor.styleSetBack(16,(30, 30, 30)); editor.styleSetFore(16, (200, 200, 200)); editor.styleSetBack(17,(30, 30, 30)); editor.styleSetFore(17, (200, 200, 200)); editor.styleSetBack(18,(30, 30, 30)); editor.styleSetFore(18, (200, 200, 200)); editor.styleSetBack(19,(30, 30, 30)); editor.styleSetFore(19, (200, 200, 200)); editor.styleSetBack(20,(30, 30, 30)); editor.styleSetFore(20, (200, 200, 200)); editor.styleSetBack(21,(30, 30, 30)); editor.styleSetFore(21, (200, 200, 200)); editor.styleSetBack(22,(30, 30, 30)); editor.styleSetFore(22, (200, 200, 200)); editor.styleSetBack(23,(30, 30, 30)); editor.styleSetFore(23, (200, 200, 200)); editor.styleSetBack(24,(30, 30, 30)); editor.styleSetFore(24, (200, 200, 200)); editor.styleSetBack(25,(30, 30, 30)); editor.styleSetFore(25, (200, 200, 200)); editor.styleSetBack(26,(30, 30, 30)); editor.styleSetFore(26, (200, 200, 200)); editor.styleSetBack(27,(30, 30, 30)); editor.styleSetFore(27, (200, 200, 200)); editor.styleSetBack(28,(30, 30, 30)); editor.styleSetFore(28, (200, 200, 200)); editor.styleSetBack(29,(30, 30, 30)); editor.styleSetFore(29, (200, 200, 200)); editor.styleSetBack(30,(30, 30, 30)); editor.styleSetFore(30, (200, 200, 200)); editor.styleSetBack(31,(30, 30, 30)); editor.styleSetFore(31, (200, 200, 200)); editor.styleSetBack(32,(30, 30, 30)); editor.styleSetFore(32, (200, 200, 200)); editor.styleSetBack(33,(30, 30, 30)); editor.styleSetFore(33, (43, 145, 175)); editor.styleSetBack(34,(38, 79, 120)); editor.styleSetFore(34, (220, 220, 220)); editor.styleSetBack(35,(30, 30, 30)); editor.styleSetFore(35, (147, 0, 0)); editor.styleSetBack(36,(30, 30, 30)); editor.styleSetFore(36, (200, 200, 200)); editor.styleSetBack(37,(30, 30, 30)); editor.styleSetFore(37, (136, 138, 133)); editor.styleSetBack(38,(0, 0, 0)); editor.styleSetFore(38, (128, 128, 128)); editor.setCaretFore((128, 128, 128)) editor.setCaretLineBack((0, 0, 0)) for i in range(15): editor.styleSetFont(i, 'Courier New') editor.styleSetSize(i,12) editor.setFoldMarginColour(True, (30, 30, 30)) editor.setFoldMarginHiColour(True, (30, 30, 30)) def callback_BUFFERACTIVATED(args): if editor.getLexer() in [1,2]: change_styles() else: editor.setFoldMarginColour(False, (30, 30, 30)) editor.setFoldMarginHiColour(False, (30, 30, 30)) notepad.clearCallbacks([NOTIFICATION.BUFFERACTIVATED]) notepad.callback(callback_BUFFERACTIVATED, [NOTIFICATION.BUFFERACTIVATED])

    Put this into the user startup.py.
    Basically, every time you switch/open a document it checks if it is either a normal text
    or python document and in such a case changes the styles.
    The meaning of the styles can be seen in stylers.xml but be aware that not
    every style id from global styles can be set but needs to be callled with a different
    function like setFoldMarginColour etc…

    Cheers
    Claudia

  • This app can't run on your PC - error

    3
    0 Votes
    3 Posts
    3k Views
    espressokidE

    I found the problem. Win 10 had disassociated the link with text files. There was no default app set to open text files. Not sure why that happened but I set the default to Notepad++ and all is well.

  • Downloaded CSS file wrapped into one line after editing & uploading

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @melissadavisgithub

    could it be that this is some kind of eol issue?
    Like you edit the file with windows eol while uploading to a unix server which expects \n only?
    View->Show Symbols->Show end of line

    Cheers
    Claudia

  • Column mode weirdness

    Locked
    1
    0 Votes
    1 Posts
    988 Views
    No one has replied
  • functionList problems

    3
    0 Votes
    3 Posts
    1k Views
    Gerzson BékG

    This is very good! Many thanks!
    I tried a similar solution, but i wrote it to the ‘javascript_function’ parser with id=58, because the comment line at start of the file says: “Don’t use L_JS (19) use L_JAVASCRIPT (58) instead!”
    So thanks again! It works now.

    Gee

    ps.: Sorry for i started a new thread, but my notepad++ is a newer version and i didn’t check all of the older threads.

  • what about installing on my mobile device?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Wrap around beep

    Locked
    2
    1 Votes
    2 Posts
    1k Views
    richluxR

    I would also like that.

    Rich

  • New install - No new plugins available

    3
    0 Votes
    3 Posts
    6k Views
    Pascal666P

    I do not see a refresh button, but I loaded it multiple times with no change. Networking is working fine for everything else.

    AppData\Roaming\Notepad++\plugins\config\PluginManagerPlugins.zip was 0 bytes. I overwrote it with PluginManagerPlugins.* from another installation and restarted. It then recommended the PluginManager upgrade and now appears to be working correctly.

  • Save As does not display working foder

    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @KerryRuddock

    what do you mean by

    I have my working folder set to htdocs,

    ?

    You set it in the settings or you assume that using folder as workspace does it?
    If the latter is the case, than, afaik, this isn’t true.
    Afaik, for the first time the saveas dialog is used,
    a new document will use the installation directory, if not specified otherwise in settings,
    and subsequent calls to the saveas dialog, for new documents, will use the last directory
    used for a save operation.

    Cheers
    Claudia

  • 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
    15k 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
    18k 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