• SOS HELP With 2nd Instance

    2
    0 Votes
    2 Posts
    286 Views
    PeterJonesP

    @niko-hamil ,

    Unfortunately, as you may have surmised from the resounding silence, there is not much you can do: if the periodic unsaved-file “backups” aren’t in their folder, then the crash caused Notepad++ to exit during the brief time that the files didn’t exist (or you didn’t have the unsaved-file backups option turned on)

    For the future, I recommend saving your files to known locations frequently, rather than leaving them opened-and-unsaved. For more, see our backup FAQ

  • Windows error or NP++ error (?)

    3
    0 Votes
    3 Posts
    369 Views
    Philippe 78P

    @alan-kilborn
    ok, thanks for that :)

    for the rest the program works, if I run it directly.

  • Missing lexers from Lexilla?

    11
    0 Votes
    11 Posts
    1k Views
    EkopalypseE

    @peterjones

    congrats, very nice. In the future it may be easier to create them with the newly added NPPM_CREATELEXER message.

  • Custom Styling

    5
    0 Votes
    5 Posts
    425 Views
    HeehonkH

    @alan-kilborn Perfect! Thanks so much.

  • Notepad++ 8.4.2 not recognizing file extension to define language

    24
    0 Votes
    24 Posts
    4k Views
    PeterJonesP

    @pallieguy said in Notepad++ 8.4.2 not recognizing file extension to define language:

    I wonder when I did that?

    Probably at one of the updates: there was a while when the installer would not notice an old installation if it wasn’t in c:\program files\notepad++, so even if you had installed to D:\notepad++\, the updater/installer would put the newer copy in c:\program files\notepad++ instead. IIRC, that has been fixed (I spent a couple minutes searching through the issues list, but wasn’t using a narrow enough set of search terms, so couldn’t find it buried in all the other results), so the next time you run the installer/updater for whatever version you end up keeping, it should hopefully default to the existing location.

  • Npp 8.4.2 unreponsive during edting

    13
    0 Votes
    13 Posts
    962 Views
    Mats KøberM

    @peterjones @Alan-Kilborn
    Just wanted to thank you guys for your feedback and advice the other day.

    After unistalling Notepad++ and deleting the folder in the programs file, as well as the one in #APPADATA#, I downloaded Notepad again, and installed xml-tools. I took the advise from @Snabel42 and unchecked some options in the plugin meny, and things seemed to work fine.

    But not for long … I belive there is some issues with the plugin, and that it affects the performance of Notepad++, making it unresponsive for shorter or longer periodes, both when using find/replace and when working more manually with the text, on the keyboard and/or with the courser.

    I’ll go to the plugin people on github and post an issue, but thanks again!

    Mats

  • 0 Votes
    3 Posts
    3k Views
    PeterJonesP

    @d-east ,

    Interesting, I did lots of experimenting after someone mentioned sessions to me, and found the following sequence:

    Only one instance open of Notepad++ Open change.log and license.txt (closing anything else first) File > Save Session… => main.sess File > Close All Settings > Preferences > Multi-Instance & Date > Multi-Instance = Open Session in new instance View > Document List turned on Open readme.txt Exit Notepad++ and restart At this point, the Document List is still visible File > Load Session… => pick main.sess It opens change.log and license.txt in a second Notepad++ instance, but this instance does not have Document List visible Exit the second instance of Notepad++ Exit the first instance of Notepad++ Restart Notepad++ to prove that Document List is still visible, which proves that the setting is still in effect

    This confirms your issue.

    I was going to point you to the FAQ for where to submit bug reports, but it turns out issue #9710 already shows a report of the same issue: “Document List panel is not shown when new instance is run”.

  • 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
    497 Views
    Frosty126F

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

  • periodic backup suddenly stopped working

    9
    0 Votes
    9 Posts
    1k 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
    4k 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
    601 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
    304 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
    22k 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
    664 Views
    Fabio Dalla VillaF

    @lycan-thrope Thank you!

  • File TabBar Context Menu

    5
    0 Votes
    5 Posts
    356 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
    10k 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.)