• Notepad ++ 8.3.1 crashes and closes without warning

    6
    0 Votes
    6 Posts
    5k Views
    PeterJonesP

    @teo-deb ,

    Weird. You might want to grab a fresh copy of nppPluginList.dll from one of the portable downloads, and see if that fixes it. Because I know that nppPluginList does not crash v8.4.1 (or any other version of Notepad++ I’ve used since v7.6.3 stabilized on the modern nppPluginList)

  • Tabbing uses spaces with python

    4
    1 Votes
    4 Posts
    667 Views
    Frosty126F

    @alan-kilborn I have thought hard, I just hate indenting with spaces

  • periodic backup suddenly stopped working

    9
    0 Votes
    9 Posts
    2k Views
    Alan KilbornA

    @ken-detweiler said in periodic backup suddenly stopped working:

    “Enable session snapshot and periodic backup” absolutely does not work

    Great bug report.
    What version of Notepad++ are you referring to?
    I am certain there will be further questions for someone that says something “absolutely does not work” and those are 4 words of a 10-word description.

  • Find and Replace with increments

    5
    0 Votes
    5 Posts
    5k Views
    PeterJonesP

    @Sean-Moody ,

    I think this script will do what you want

    # encoding=utf-8 """https://community.notepad-plus-plus.org/topic/23149/find-and-replace-with-increments/4 This will start by matching text from `{` at the beginnig of a line to `}` or `},` at the beginning of a line Inside those groups, it will replace all "zone_#" or "zone #" with the value of the counter The counter will increment between `{...}` groups """ from Npp import * import re counter = 1 def replace_group(m): global counter out = re.sub(r'(?<=zone[ _])\d+', str(counter), m.group(0)) counter = counter + 1 return out console.clear() editor.beginUndoAction() editor.rereplace(r'(?s)^{\h*$.*?^},?\h*$', replace_group) editor.endUndoAction()

    The editor.rereplace line matches from { at the beginning of a line to } or }, at the beginning of a line. It then calls replace_group() on that match. The second function does the search-and-replace inside that group, looking for zone followed by either _ or space, followed by one or more digits, and replaces those digits with the current value of the counter. Every group of { to }, will increment the counter by one, so each chunk will get a unique number, but use the same number inside.

    Assumptions:

    That your example data isn’t missing leading spaces, because the regex assumes the { and }, are at the beginning of the line. That there aren’t any other { and }, at the beginning of lines embedded inside (so nicely indented and properly formulated json) That zone_1 and zone 1 within a single {…} block should all get the same counter value That you don’t have any zone_### inside your blocks that you don’t want changed (you didn’t show any, but…)
  • NOTEPAD++ 8.4, 8.4.1 and 8.4.2 crash

    4
    0 Votes
    4 Posts
    1k Views
    Stefano TonellaS

    @lycan-thrope said in NOTEPAD++ 8.4, 8.4.1 and 8.4.2 crash:

    eded knowledge y

    Thank you so much to both of you, indeed …
    I try to update them, and see what will happen.
    Stef

  • Windows 10 - NotePad++ v8.4.2 File Associations

    3
    0 Votes
    3 Posts
    350 Views
    Ed RedondoE

    Found out I had to run NotePad++ as administrator.
    Now all file associations work.

    My bad.

  • opening *.link files in notepad++

    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @adam-kalinowski

    .lnk files are binary files; Notepad++ is a text editor. So, even if you could open them in Notepad++, it wouldn’t be a great plan to edit them with it.

  • NULL where blanks should be - Turn this off

    7
    1 Votes
    7 Posts
    23k Views
    Leon SuL

    I have the same issue: why Notepad++ displays space character as NUL in a .txt file?
    The .txt file just displayed fine in any other text editors including UtraEdit.

  • CSVLint.dll problem during setup

    5
    0 Votes
    5 Posts
    750 Views
    Fabio Dalla VillaF

    @lycan-thrope Thank you!

  • File TabBar Context Menu

    5
    0 Votes
    5 Posts
    401 Views
    TekBearT

    @alan-kilborn said in File TabBar Context Menu:

    @tekbear

    Yes, see HERE.

    Thanks, I just finished getting it done (debugging a spelling mistake is painful). For the benefit of others here is an example:
    npp custom context menu.png

  • Find/Replace - keeping a part of the find, remove everything else

    4
    0 Votes
    4 Posts
    1k Views
    guy038G

    Hello, @gabriel-mourão, @alan-kilborn and All,

    I’m sorry, Gabriel, but your final search regex seems invalid -:((

    May be it’s some typos, introduced by the forum syntax, but one correct syntax is :

    !\\[([^]]+[A-Za-z{}=\\/!_-\s])\\]\([^)]+[A-Za-z{}=\\/()!_-\s]

    Using the free-spacing mode, (?x), this syntax can be split as below :

    (?x) !\\[ ( [^]]+ [A-Za-z{}=\\/!_-\s] ) \\] \( [^)]+ [A-Za-z{}=\\/)!_-\s]

    Note that :

    On one hand :

    The part [^]]+ matches the chars range ![\vec{Q}=m \cdot \vec{\Delta v}

    The part [A-Za-z{}=\\/!_-\s] matches the single char ]

    On the other hand :

    The part [^)]+ matches the chars range (vec{Q}=m_!cdot_!vec{!Delta_v}

    The part [A-Za-z{}=\\/)!_-\s] matches the single char ), at the end

    I suppose that it’s not exactly what you want !

    Your need could rather be expressed as :

    First search for an exclamation mark and an opening square bracket ![

    Then, search for the smallest range of chars…

    Till an ending square bracket ]

    Now, search for an opening parenthese (

    Then, search for the smallest range of chars…

    Till an ending parenthese )

    This leads to this simple regex S/R :

    SEARCH (?-s)!\\[(.+?)\\]\(.+?\)

    REPLACE \$$1\$

    Best Regards,

    guy038

  • Can I set the default save location?

    3
    0 Votes
    3 Posts
    2k Views
    xebicoX

    @alan-kilborn Works for me! I had it on Follow current document, but if NPP wasn’t open already, it still defaulted to Public Documents. (Odd, because I never use Public Documents for anything.)

    Thank you for helping — I figured it would be something simple that I overlooked.

  • 0 Votes
    12 Posts
    13k Views
    Alan KilbornA

    @alan-kilborn said in How to show ascii value of one selected character or a double byte character?:

    I will create an issue on your github page

    I did this HERE.

    (Sorry for getting off-topic.)

  • How to join some lines with desired specifications in notepad++

    3
    0 Votes
    3 Posts
    714 Views
    AliMirzaei5778A

    @peterjones
    Thank you very much. Everything is perfect.

  • find and replace with wildcards

    16
    0 Votes
    16 Posts
    4k Views
    john EskiJ

    @guy038 Thanks Guy and Terry

    this is a machine file so certain piece have more operations than others (operations like Dimple)

    terry’s code worked really well. Thank you again Terry, now i just have to do the reading to comprehend

  • Grab text from chrome

    2
    0 Votes
    2 Posts
    227 Views
    PeterJonesP

    @lisa ,

    Not built in. Notepad++ does not know how to remote-control Chrome (or any other app)

    That said, as a workaround, just copy the URL from Chrome yourself, and paste it into your Notepad++ document.

    Or use Chrome’s built-in bookmark feature, as that is that feature’s reason existence

  • Modify shortcut menu entry executes HTMLTidy

    3
    0 Votes
    3 Posts
    268 Views
    aranapatonaA

    @konrád-lőrinczi said in Modify shortcut menu entry executes HTMLTidy:

    When I press the Macro > Modify shortcut / Delete macro menu entry in Notepad++, HTMLTidy is executed on the current file, then I get a popup error dialog:
    TextFX
    “Writing error summary to C:\winprg\Notepad++\plugins\NppTextFX\Config\tidy\HTMLTIDY.ERR”

    Debug info:
    Notepad++ v8.1.9.3 (32-bit)
    Build time : Dec 6 2021 - 19:16:45
    Path : C:\winprg\Notepad++\notepad++.exe
    Command Line :
    Admin mode : ON
    Local Conf mode : ON
    Cloud

    Config : OFF

    OS Name : Windows 7 Professional (64-bit)
    OS Build : 7601.0
    Current ANSI codepage : 1250
    Plugins : BetterMultiSelection.dll ccc.dll ComparePlugin.dll DSpellCheck.dll HTMLTag_unicode.dll mimeTools.dll NppCalc.dll NppCCompletionPlugin.dll NppConverter.dll NppExport.dll NppFavorites.dll NppSnippets.dll NppTextFX.dll NppTextViz.dll PreviewHTML.dll QuickText.dll Remove Duplicate Lines.dll SelectQuotedText.dll SessionMgr.dll SherloXplorer.dll SurroundSelection.dll Translate.dll WebEdit.dll WindowManager.dll

    How to fix this problem?

    Thanks!

    this happened to me too, just remove textfx and reinstall it, problem is am already defined macro (alt-shift-s) that is conflicting with textfx

  • Python console, Goto line appears to have stopped working

    4
    0 Votes
    4 Posts
    382 Views
    rdipardoR

    It’s already been reported to the PythonScript devs: https://github.com/bruderstein/PythonScript/issues/234

  • Paste the output of an executable (exe) in Notepad++ current file

    4
    0 Votes
    4 Posts
    2k Views
    AmitA

    @peterjones I will give pythonscript plugin a try. Thank you. Really appreciate a detailed answer.

  • 0 Votes
    7 Posts
    449 Views
    Ken ShawK

    @peterjones
    Woot my company installed the latest version of NotePad ++ so very happy