• Login
Community
  • Login
  1. Home
  2. General Discussion
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • D

    pls, delete the trojan

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 28, 2022, 11:07 AM
    Apr 28, 2022, 9:54 AM
    0 Votes
    2 Posts
    247 Views
    E Apr 28, 2022, 11:07 AM

    @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.

  • A

    Bug with annotations relating to z-order

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 27, 2022, 6:01 PM
    Apr 27, 2022, 3:04 PM
    1 Votes
    3 Posts
    304 Views
    A Apr 27, 2022, 6:01 PM

    @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. :-)

  • C

    CTRL-N bookmark feature please

    Watching Ignoring Scheduled Pinned Locked Moved bookmarks
    7 Apr 27, 2022, 2:17 PM
    Apr 27, 2022, 12:16 PM
    0 Votes
    7 Posts
    1k Views
    A Apr 27, 2022, 2:17 PM

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

  • L

    Find In Files should in a separate thread

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 27, 2022, 7:48 AM
    Apr 27, 2022, 5:21 AM
    0 Votes
    3 Posts
    341 Views
    P Apr 27, 2022, 7:48 AM

    @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.

  • U

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

    Watching Ignoring Scheduled Pinned Locked Moved
    9 Apr 24, 2022, 8:41 AM
    Oct 16, 2019, 6:39 AM
    4 Votes
    9 Posts
    4k Views
    G Apr 24, 2022, 8:41 AM

    @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.

  • A

    [SOLVED][Tutorial][ShellExecute failed (2)] I can use "Edit with Notepad++" as administrator

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 23, 2022, 8:14 AM
    Apr 23, 2022, 8:14 AM
    0 Votes
    1 Posts
    6k Views
    No one has replied
  • F

    Adding the Extension of PRG in the Tab Settings list

    Watching Ignoring Scheduled Pinned Locked Moved
    24 Apr 22, 2022, 8:03 PM
    Apr 16, 2022, 3:09 PM
    0 Votes
    24 Posts
    6k Views
    L Apr 22, 2022, 8:03 PM

    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.

  • J

    Different encoding determined based on the file extension

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 22, 2022, 7:05 AM
    Apr 22, 2022, 6:43 AM
    0 Votes
    2 Posts
    460 Views
    E Apr 22, 2022, 7:05 AM

    @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.

  • E

    Finding strings that start in a specific column

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Apr 21, 2022, 6:01 PM
    Apr 20, 2022, 4:54 PM
    0 Votes
    5 Posts
    3k Views
    E Apr 21, 2022, 6:01 PM

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

  • S

    Function List plugin - how to debug

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 21, 2022, 6:10 AM
    Oct 8, 2020, 2:32 AM
    1 Votes
    3 Posts
    411 Views
    S Apr 21, 2022, 6:10 AM

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

    ?>

    Minor thing that caused a lot of pain…

  • K

    Find - Replace

    Watching Ignoring Scheduled Pinned Locked Moved
    13 Apr 19, 2022, 5:21 PM
    Apr 4, 2022, 8:13 PM
    0 Votes
    13 Posts
    15k Views
    P Apr 19, 2022, 5:21 PM

    The phrasing I am considering for the user manual:

    issue #349 => PR #350

    It should be in the next release of the user manual

  • A

    Document does not scroll when holding F3

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Apr 19, 2022, 8:36 AM
    Apr 14, 2022, 8:19 AM
    0 Votes
    4 Posts
    293 Views
    A Apr 19, 2022, 8:36 AM

    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
  • F

    Font for space character in User Definded Languages

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 16, 2022, 5:26 PM
    Apr 16, 2022, 12:06 PM
    0 Votes
    3 Posts
    513 Views
    A Apr 16, 2022, 5:26 PM

    @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.

  • Mech MonM

    Regex find/replace EOL except if..

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 15, 2022, 3:16 PM
    Apr 15, 2022, 2:22 PM
    0 Votes
    3 Posts
    283 Views
    Mech MonM Apr 15, 2022, 3:16 PM

    @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.

  • manu rozierM

    Save on Exit vs Periodic Backup

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 15, 2022, 12:54 PM
    Apr 15, 2022, 7:09 AM
    0 Votes
    2 Posts
    296 Views
    P Apr 15, 2022, 12:54 PM

    @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 ?

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 15, 2022, 11:25 AM
    Apr 15, 2022, 6:39 AM
    0 Votes
    2 Posts
    276 Views
    A Apr 15, 2022, 11:25 AM

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

    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.

  • Hellena CrainicuH

    Are there any plugins or ways to perform multiple search and replace regex operations at once?

    Watching Ignoring Scheduled Pinned Locked Moved
    10 Apr 10, 2022, 3:00 PM
    Feb 20, 2022, 6:35 PM
    1 Votes
    10 Posts
    2k Views
    rodica FR Apr 10, 2022, 3:00 PM

    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

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 10, 2022, 1:43 PM
    Apr 10, 2022, 1:01 PM
    0 Votes
    3 Posts
    283 Views
    БоЙсТеНьЮБ Apr 10, 2022, 1:43 PM

    @alan-kilborn Big thanks :)

  • M

    Get 10 lines before specific word with regular Expression

    Watching Ignoring Scheduled Pinned Locked Moved
    7 Apr 9, 2022, 10:08 PM
    Apr 9, 2022, 8:00 PM
    0 Votes
    7 Posts
    4k Views
    P Apr 9, 2022, 10:08 PM

    @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.

  • alexologA

    TextFX replacement

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Apr 9, 2022, 4:35 PM
    Mar 9, 2021, 5:19 AM
    1 Votes
    5 Posts
    11k Views
    Josh SchneiderJ Apr 9, 2022, 4:35 PM

    @alexolog, this works for 64-bit

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors