• pls, delete the trojan

    2
    0 Votes
    2 Posts
    236 Views
    EkopalypseE

    @dulce-gd

    Without knowing where you downloaded which file, no one can check whether this is actually the case, which I doubt is the case anyway.

  • Bug with annotations relating to z-order

    3
    1 Votes
    3 Posts
    277 Views
    Alan KilbornA

    @michael-vincent said in Bug with annotations relating to z-order:

    that actually isn’t an “annotation” in the sense of a Scintilla annotation

    I was actually working on some script code that deals with annotations at the time I noticed that, so I guess that was on my mind. :-)

  • CTRL-N bookmark feature please

    7
    0 Votes
    7 Posts
    709 Views
    Alan KilbornA

    There also might be some nuggets HERE for someone with ambition and skills enough to “roll their own”.

  • Find In Files should in a separate thread

    3
    0 Votes
    3 Posts
    312 Views
    pnedevP

    @lavanyadeepak ,

    What I can think of is that if Find in Files was running in another thread then the user could modify/delete files in parallel which would mess-up the ongoing search operation.

  • MIB file (SNMP) syntax highlighting [User Defined Language]

    9
    4 Votes
    9 Posts
    4k Views
    gstaviG

    @rdipardo said in MIB file (SNMP) syntax highlighting [User Defined Language]:

    This definitely won’t work:

    That is why I said “test the lexing quality with old NPP version”.
    if there is interest, I may invest the time. Or since the source code is available then maybe someone else will take over.

    If everyone is happy with UDL, great.

  • 0 Votes
    1 Posts
    5k Views
    No one has replied
  • Adding the Extension of PRG in the Tab Settings list

    24
    0 Votes
    24 Posts
    4k Views
    Lycan ThropeL

    Yes, I get it, it’s not an indentation bug, I must have done something wrong. :-)

    So I’ll have to mess with it to see what I did wrong. I will try creating a user startup.py and put it where ever it goes (reading the instructions on file locations I have here somewhere), and remove it from the machine startup.py. This is kind of the thing, I know I’ve screwed it up somehow and I don’t understand the indentation rules for Python…I’m am only learning and dabbling at the moment, and indentation was never a critical part of any programming I’ve ever done, so it’s new to me. I’ll get it. Thanks for the pointers and the tests.

  • Different encoding determined based on the file extension

    2
    0 Votes
    2 Posts
    431 Views
    EkopalypseE

    @joe-schmitz

    No, this is not an error. Some files like xml or html sometimes provide a tag that Npp uses to identify the encoding. If this is not present or Npp does not know that it is an XML or HTML file, it tries to guess the encoding using the chardet module.
    So it works as intended. By the way, in this particular case, ISO-8859-1 and your ANSI version (1252) are identical.

  • Finding strings that start in a specific column

    5
    0 Votes
    5 Posts
    3k Views
    e5584071E

    @alan-kilborn , thanks very much. This is exactly what I needed. Have a great day!

  • Function List plugin - how to debug

    3
    1 Votes
    3 Posts
    387 Views
    S

    Need to have a closing php tag in the file for the function list to work…

    ?>

    Minor thing that caused a lot of pain…

  • Find - Replace

    13
    0 Votes
    13 Posts
    10k Views
    PeterJonesP

    The phrasing I am considering for the user manual:

    issue #349 => PR #350

    It should be in the next release of the user manual

  • Document does not scroll when holding F3

    4
    0 Votes
    4 Posts
    277 Views
    Antoni RoszakA

    Hi,

    I have uninstalled the Horizontal Ruler, and updated XMLTools to 3.1.1.13, and it’s still incorrect. This is a large XML file, 57 MB, 1.7 million lines. With a smaller file (87k lines) it works fine.

    I have narrowed it down a bit; apparently, the problem occurs when the number of lines between occurrences is large. I cannot share the original file itself for privacy reasons, but I got the path:

    take file “C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2911.0\Microsoft.DirectX.Direct3DX.xml” copy everything between second and penultimate line, 20 times (I got 270k lines) search for “Microsoft.DirectX.PrivateImplementationDetails.”, normal mode hold F3
  • Font for space character in User Definded Languages

    3
    0 Votes
    3 Posts
    468 Views
    Alan KilbornA

    @peterjones said in Font for space character in User Definded Languages:

    Personally, if I have a monospace font and size that I want, I want it on all my Languages, not just one UDL (I don’t see a reason in a text editor to ever use a non-monospace font, and I don’t see a reason for having Courier New in C++ but Consolas in Visual FoxPro and DejaVu Sans Mono in Perl, or some wacky combination like that). So I just set my StyleConfigurator>GlobalStyles>DefaultStyle to the one font to rule them all (DejaVu Sans Mono, of course). But Notepad++ is supposed to be highly configurable to handle everyone’s tastes, so I am not trying to force you to agree with me.

    Yes, but smart people will agree with you.
    And I agree 100% with all of this.

  • Regex find/replace EOL except if..

    3
    0 Votes
    3 Posts
    268 Views
    Mech MonM

    @peterjones thank you yes exactly what I was looking for. I did have the period escaped, but was not clear about the positive/negative look ahead/behind. I didn’t RTFM close enough.

  • Save on Exit vs Periodic Backup

    2
    0 Votes
    2 Posts
    277 Views
    PeterJonesP

    @manu-rozier ,

    You might find that the AutoSave plugin gives you more control of the automatic saves. We have a FAQ comparing the plugin vs the periodic backup.

  • How to disable ctrl+g and 8.2 ?

    2
    0 Votes
    2 Posts
    263 Views
    Alan KilbornA

    @александр-сухоруков

    Go to the Settings menu and choose Shortcut Mapper. Locate Ctrl+g:

    a83b4292-3405-44fb-aa4c-1831ae0e30fc-image.png

    and then at the bottom of the window press the Clear button:

    a2cb147c-ab2d-4399-9b5d-1fe1bdb0ebfe-image.png

    This will remove the Ctrl+g binding.

  • 1 Votes
    10 Posts
    2k Views
    rodica FR

    Done. If someone wants to make search and replace with Python Script, in a directory:

    # -*- coding: utf-8 -*- from __future__ import print_function from Npp import * import os import sys #------------------------------------------------------------------------------- class T22601(object): def __init__(self): Path="C:\\python-test" for root, dirs, files in os.walk(Path): nested_levels = root.split('/') if len(nested_levels) > 0: del dirs[:] for filename in files: if filename[-5:] == '.html': notepad.open(root + "\\" + filename) console.write(root + "\\" + filename + "\r\n") notepad.runMenuCommand("Encodage", "Convertir en UTF-8") regex_find_repl_dict_list = [ { 'find' : r'foo', 'replace' : r'bar' }, { 'find' : r'bar', 'replace' : r'gaga' }, ] editor.beginUndoAction() for d in regex_find_repl_dict_list: editor.rereplace(d['find'], d['replace']) editor.endUndoAction() notepad.save() notepad.close() #------------------------------------------------------------------------------- if __name__ == '__main__': T22601()
  • Remove excess Scroll From End Line

    3
    0 Votes
    3 Posts
    268 Views
    БоЙсТеНьЮБ

    @alan-kilborn Big thanks :)

  • Get 10 lines before specific word with regular Expression

    7
    0 Votes
    7 Posts
    3k Views
    PeterJonesP

    @mohammed-osama ,

    After you gave up, I made a file containing sixteen copies of:

    twelve eleven ten nine eight seven six five four three two one this line succeeded in being matched

    When I used the regex you quoted, it showed 16 matches, and each match was the line with “succeeded” plus the 10 lines before it:

    bf34c849-f868-49da-b09a-47e61dc9be7b-image.png

    As far as I can tell, that “worked”, based on the problem statement you made in your posts.

    When you say “but not working”, when it works for us, you have to provide more than “not working” in order for us to understand how your requirements differ from those that you’ve stated.

    The “Useful References” I linked were to help you ask your question better. and would be useful to help you ask in a way that we can better understand what you want. The “Please Read Before Posting” gives important information about how to format a post, and links to how to format your text in such a way that we can read it (rather than requiring a moderator go in and fix your posts so that the regex are readable; as a moderator, I was willing to do that twice, because I thought it made your questions more accessible, which would make it more likely that you would get your help). The “Template…” is just that, a template that you can use to easily format your search/replace questions so that you give us both example data and what you have already tried. The last two were additional reading that will help you in the future.

    I went to a lot of effort to make sure you got good help, and yet the extent of your reply was “but not working”. If you try harder, we can continue to try helping. If you give up, then you will never learn how to do what you want. It’s really up to you.

  • TextFX replacement

    5
    1 Votes
    5 Posts
    11k Views
    Josh SchneiderJ

    @alexolog, this works for 64-bit