• "Find Prev" button is missing

    Locked
    1
    1 Votes
    1 Posts
    882 Views
    No one has replied
  • Make folder browser bigger in search and replace

    Locked
    1
    1 Votes
    1 Posts
    795 Views
    No one has replied
  • NumLock switched off when launching Notepad++

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @Theo-Fondse

    There is probably a better solution, but until you find it you could script turning Num Lock back on after Notepad++ starts up with the Pythonscript plugin.

    Put the following code in startup.py and make sure Pythonscript’s “Initialisation” option is set to ATSTARTUP (under the Configuration menu option for the Pythonscript plugin). Note that Pythonscript is only 32-bit right now, so it will only work with 32-bit Notepad++.

    I really hope you find a better solution and don’t have to resort to this !! :-D

    If this (or ANY posting on the Notepad++ Community site) is useful, don’t reply with a “thanks”, simply up-vote ( click the ^ in the ^ 0 v area on the right ).

    import ctypes def turn_on_numlock(): VK_NUMLOCK = 0x90 KEYEVENTF_EXTENDEDKEY = 0x01 KEYEVENTF_KEYUP = 0x02 GetKeyState = ctypes.windll.user32.GetKeyState keybd_event = ctypes.windll.user32.keybd_event if not GetKeyState(VK_NUMLOCK): keybd_event(VK_NUMLOCK, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0) keybd_event(VK_NUMLOCK, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0) turn_on_numlock()
  • Error XRMtools plugin

    Locked
    1
    0 Votes
    1 Posts
    984 Views
    No one has replied
  • Session management in multi-instance mode

    Locked
    1
    0 Votes
    1 Posts
    912 Views
    No one has replied
  • Search text, only in ranges in the line!

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    Nicolas MachadoN

    @Scott-Sumner You are totally right, reg expression are still a mystery for me. I use it in a dummy way, chek email format, numbers. But to me is a pending issue. Thank you very much, you gave me more than I expect.

  • how to set this up

    Locked
    1
    0 Votes
    1 Posts
    849 Views
    No one has replied
  • Syntax sql is not correct

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    cipher-1024C

    This appears to be a bug in Scintilla that has been there since the dawn of time. Coincidentally, this was patched a month ago. The bad news is that it can take a long time before NPP gets a new Scintilla engine. If it’s really vexing you, you could install the Poor Man’s T-Sql Formatter plugin. I think that comes with a custom language definition that doesn’t suffer from the same bug. It does some nifty automatic formatting for you too.

  • Python function list with Notepad ++ v7.4.2

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Highlight doesn't work on a clone view of the same file.

    7
    0 Votes
    7 Posts
    3k Views
    Taihai ChenT

    @dail That’s a shame.

  • HOW TO MAKE A SHORTCUTS FOR THIS?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Álvaro MeirelesÁ

    Wow,

    Very nice!

    Now I can close the find result using this Script System more one shortcut :D

    Thank you!

  • Changing the background color of the editor window

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    cmeriauxC

    yes,
    in the “Style Configurator” panel, you can chose various theme.

  • pretty print XML by default?

    3
    0 Votes
    3 Posts
    5k Views
    Gogo NeatzaG

    The one line python script is :
    notepad.runPluginCommand(‘XML Tools’, ‘Pretty Print (XML only - with line breaks)’)

  • replace notepad with notepad++

    Locked
    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 1 Votes
    3 Posts
    2k Views
    TuTAH1T

    Screenshot2
    Fucking “wait 20 minutes to post new massage” this is not an obstacle to ad bots. I already give 2 rep to myself

  • 0 Votes
    4 Posts
    12k Views
    AdrianHHHA

    This is easy in Notepad++ with a regular expression, but it is also easy to get it wrong and to wrongly delete or change things. So first, make sure you have a backup of the file, not just the backups that Notepad++ will keep, but make your own backup copy. Then it is easy to revert if you mess things up.

    Also note that “wildcards” and “regular expressions” are different. Notepad++ supports regular expressions, it does not do wildcards.

    All the numbers to be altered in the example text have 3 or 4 digits and are preceded by a space and then have the f or t. Then there is another space or a comma or the end of line. These strings can be removed by replacing " \d{3,4}[ft](,| |$)" with a single space. That leaves the text as:

    granuloma 553 irritant/toxic causes
    eruption 551Ð552, idiopathic facial
    pathogenesis 545,
    833 adhesion molecules adhesion proteins

    The question is not clear whether the remaining numbers above, i.e. those without a t or f, should be removed. Assuming they are to be removed then the above regular expression could be altered to be “(^| )\d{3,4}[ft]?(,| |$)”. Using it gives the result

    granuloma irritant/toxic causes
    eruption 551Ð552, idiopathic facial
    pathogenesis
    adhesion molecules adhesion proteins

    This leaves 3 issues that I can see.

    The “551Ð552” . There should not be many numbers left. They can be searched for and removed manually. Leading and trailing spaces on lines. Use menu => Edit => Blank operations => Trim leading and trailing spaces. Embedded double spaces (came from the two replacements at “1684f, 1685t”. Just do a replace-all of two spaces with one space and repeat until no more changes found.

    Note that using simple regular expressions such as “\d{3,4}[ft]” is unwise for this task. It would change, for example, “ulna 123fibia radius 45678tibia pelvis” to be ulna ibia radius 4ibia pelvis". Thus removing wanted letters and leaving some digits in place.

  • Strange message in notepad. Or is a virus ?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    OleksandrO

    Thanks!
    Now Easter Eggs like this is not looks a good.
    After wannaCry and other ransomware viruses…
    Very bad idea to use it.

  • how to run a notepad++ macro from vbscript or powershell?

    4
    0 Votes
    4 Posts
    8k Views
    Thanasis PalianopoulosT

    thank you
    that worked fine!!!

  • A script to cycle between panels ?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Victor MasséV

    Expected behavior:

    Notepad++ always runs with the "folder as workspace" pane displayed. F1 closes it and opens the "NppFTP" pane. F1 closes it and opens the "FingerText" pane. F1 closes it and brings back the "folder as workspace" pane, and the cycle goes on.