Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • pbarneyP

      Applying Diff patches?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      156 Views
      EkopalypseE

      @pbarney

      Using PS3 and an installed pygit2 library
      you can do something like

      import pygit2 repo = pygit2.Repository(Path(notepad.getCurrentFilename()).parent) diff = pygit2.Diff.parse_diff(editor.getText()) repo.apply(diff)

      This assumes that

      the patch file has been created from a git tool the current file open is the patch file in question the patch file is in the repo directory
    • pbarneyP

      Quick Question: what Python version for Pythonscript does everyone use?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      1 Votes
      3 Posts
      103 Views
      EkopalypseE

      @pbarney

      I only use the pre-release version, PS3,
      as I only work with utf8 encoding, which I think everyone should do.

    • Maxim RodinM

      How do I convert a Notepad++ texst file to a PDF file with the vertical spacing bvetween the lines staying the same?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      159 Views
      PeterJonesP

      @Maxim-Rodin said in How do I convert a Notepad++ texst file to a PDF file with the vertical spacing bvetween the lines staying the same?:

      The book uses box drawing characters, which require the vertical spacing between lines to be very small. All of this needs to be exported in PDF format, but when I open the resulting PDF file, the vertical spacing is very high. Is there any way to fix this, either in Notepad++ or in the finished file?

      The problem might be the font you are using. When I use Fira Code as my font, print some box-drawing to PDF, and then open it in my free SumatraPDF viewer, the spacing looks reasonable (the boxes all connect) – the following is a screenshot from my PDF viewer

      33fe7d55-14fc-41e1-bfb3-d121f83b1563-image.png
      … So it’s showing them still connected.

      (Here’s NPP screenshot before I printed to PDF:
      ee7458bc-e218-417f-8fcd-5235c2f764ce-image.png
      … it shows connected there, too)

      Also, if that’s not working for you, if you take your text file in Notepad++ and use Language > M > MS-DOS Style (which is the lexer that’s useful for the old ASCII art .nfo-style files… though .nfo doesn’t seem to be in my default extension list anymore, which surprised me), Notepad++ actually changes the line spacing to make the lines closer together. So if changing fonts doesn’t work for you, try printing when in the Language = MS-DOS Style.

      Finally, the Settings > Preferences > MISC has some “DirectWrite” or “Rendering mode” settings (depending on which version of Notepad++ you are using) – you can try the various options available to you, as that influences how Notepad++ and the OS interface when dealing with fonts, so that can influence it. You may need to exit and restart Notepad++ for the DirectWrite setting change to take effect.

      For example, in my tests with Fira Code font, if I had Language = “MS-DOS Style” but “Rendering Mode” set to “Direct Write (default)”, I would see gaps, even though in Language = “None (normal text)”, I wouldn’t see gaps. If I change to “Rendering Mode” = “GDI (most compatible)” (or DirectWrite=off in the old nomenclature) and restart and look at the box drawing in “MS-DOS Style”, it goes back to being connected. But my experience may be different than yours, because as I said, when I use FiraCode in my normal setup, the box drawing characters are properly connected.

      In general, Notepad++ tries to print essentially what you see (in terms of font size, line spacing, etc), so if you see the box drawing connected when looking at it on-screen in Notepad++, it should print to PDF (or physical printer) that way, too. If not, it might be your printer driver, or you might need to change your font and/or DirectWrite settings.

    • Nathalie De AsisN

      What makes notepad++ capable of making an html ???

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      278 Views
      rdipardoR

      @PeterJones said in What makes notepad++ capable of making an html ???:

      …

      HTML Tag = makes writing HTML easier

      Just so no one is disappointed, the original and primary use case for that plugin is actually reading (X/HT)ML, i.e., by making DOM trees easier to navigate. More recent versions do have additional features that may be useful in writing web documents, but it cannot, for example, scaffold an HTML page or insert markup snippets.

      A better plugin for (simple) HTML generation would be WebEdit.

      There’s also jn-npp-emmet, a JavaScript extension for the jN plugin (a.k.a “jn-npp-plugin”), which ought to be able to generate any kind markup that emmet can.

    • Bo ChenB

      Notepad++ has a Reload false alarm / bug? "This file has been modified by another program. Do you want to reload it"? even when it hadn't been recently modified at all?!

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      35
      1 Votes
      35 Posts
      12k Views
      M

      @Denis-Rionnet said in Notepad++ has a Reload false alarm / bug? "This file has been modified by another program. Do you want to reload it"? even when it hadn't been recently modified at all?!:

      I understand that this behaviour can be disabled via the settings panel (it works: the warning gets muted)).

      How and where? nvm - found it with Google - Settings>Misc>File Status auto-detection.

      I’m having the same issue - for me, typically when I don’t save the file in NPP, lock the computer, and then unlock it and go back to editing.

      Files are stored on a network hard drive (not Cloud storage). File protocol is SMB, if that is what @ekpalypse is asking.

      I don’t think I’ve seen the message in NPP previously, but I’ve just started using it heavily.

      I agree, the feature was handy when it worked.

      For me, nobody else edit’s these files, and the one other program that I might edit them in notifies me if they were changed in NPP, so I’m okay with disabling it, but I’d like to see it fixed.

      Debug info:
      Notepad++ v8.8.1 (64-bit)
      Build time : May 3 2025 - 18:41:09
      Scintilla/Lexilla included : 5.5.6/5.4.4
      Boost Regex included : 1_85
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line : “Z:_Brooks Work\FM ExtendScript\Scripts_2025\OPS_JG_Update_Variables.jsx”
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      Periodic Backup : ON
      Placeholders : OFF
      Scintilla Rendering Mode : SC_TECHNOLOGY_DEFAULT (0)
      Multi-instance Mode : monoInst
      File Status Auto-Detection : cdEnabledNew (for current file/tab only)
      Dark Mode : OFF
      OS Name : Windows 11 Enterprise (64-bit)
      OS Version : 23H2
      OS Build : 22631.5472
      Current ANSI codepage : 1252
      Plugins :
      JSMinNPP (1.1905.1)
      mimeTools (3.1)
      NppConverter (4.6)
      NppExport (0.4)
      NPPJSONViewer (1.34)
      XMLTools (3.1.1.13)

    • FraF

      How to batch Beautify/Prettify/Unminify all HTML files in a folder? - XML Tools Plugin - Pretty Print - Apply to all open documents - Find In Files

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      4
      0 Votes
      4 Posts
      371 Views
      FraF

      @PeterJones Thanks for the input.

      Surprisingly, just dragging and dropping all the files at once onto Notepad++ opens all the files in about 5 seconds for 1000 files.

      Then the XML Tools takes about 10 seconds to prettify all opened files.

      Then just go to File > Close All so to not have to close each file manually.

      Will do it that way.

      Would be great to update the XML tools plugin if someone’s able and it is not to much work.

      Or just adding the Pretty Print feature directly to the Find In Files feature as extra function for the next Notepad++ update.

    • Ken McQuestonK

      Search string to replace sheet protection multiple .xml files.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      133 Views
      Ken McQuestonK

      @PeterJones

      That worked! Thanks for your help!

      Ken

    • 7 COME117

      Revert to Windows 10 NotePad

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      204 Views
      7 COME117

      @PeterJones
      Many thanks!
      Regards,
      RPrinceton

    • Maciej ZetM

      Suggestion about Right Click Context Menu

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      239 Views
      Maciej ZetM

      @pbarney BIG thanks as this is was I looking for.
      Just for the record - just checked and 2 entries is also fine:

      Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\SystemFileAssociations\.ps1\Shell\Edit with Notepad++ from line 450\Command] @="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\" -n450 %*" [HKEY_CLASSES_ROOT\SystemFileAssociations\.ps1\Shell\Edit with Notepad++ from line 450] "Icon"="C:\\Program Files\\Notepad++\\notepad++.exe"

      and perfect icon appear :)

    • NebulaPulseXN

      Using Notepad++ for Script Review in Large-Scale Automation

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      1 Votes
      3 Posts
      199 Views
      Thomas KnoefelT

      @NebulaPulseX
      MultiReplace covers the complexity you’re dealing with quite well. While it doesn’t support syntax checking, it handles regex, variables, and multiline edits. Bulk replacements work across all open files in Notepad++. Folder-based processing is on the roadmap.

    • guy038G

      The 'shortcuts.xml' file is NOT re-created if you delete it, on purpose or by mistake !

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      6
      1 Votes
      6 Posts
      560 Views
      PeterJonesP

      @deleelee said in The 'shortcuts.xml' file is NOT re-created if you delete it, on purpose or by mistake !:

      Perhaps I’m misunderstanding your meaning but, if the “exe” directory is the one containing notepad++.exe, the portable version does have shortcuts.xml there.

      You ignored the context of the discussion: the specific question @guy038 asked was,

      Is is normal that a default shortcuts.xml file is NOT created if absent in current folder ( for a portable version )

      Or, phrases a different way: “if you delete the shortcuts.xml and start Notepad++, why doesn’t it re-create it with default shortcuts”

      So, definitionally, if you’ve deleted the shortcuts.xml from the portable directory, there is no shortcuts.xml from which NPP can read the defaults, since NPP doesn’t have a .model for shortcuts.xml and it has no where else to look. (I was contrasting that to the normal installation, where if you delete the App data shortcuts.xml, NPP can recreate it using the shortcuts.xml in the exe directory)

    • Bernard Schleich 0B

      How to set "zoom" level of menu, toolbar and footbar ?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      224 Views
      mpheathM

      @Bernard-Schleich-0

      I currently use

      https://github.com/Tatsu-syo/noMeiryoUI

      in Windows > 7 removed settings to adjust fonts in Notepad++ and other programs . In Preferences, General -> Reduce may need to be unchecked for OS settings to be used.

      Size of fonts changed should be modest as larger sizes may not fit in the area allocated in the GUI.

      Microsoft appears to want users to use Scaling instead of the legacy of WindowMetrics.

    • JE RamirezJ

      Note++ file location

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      216 Views
      JE RamirezJ

      @PeterJones, thanks. Of course, it’s Notepad++, a little too fast with the typing and posting of the question.

      Thanks for the paths.

    • S

      System Requirements

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · windows
      3
      1 Votes
      3 Posts
      193 Views
      S

      @PeterJones
      Ok thanks for your help. Probably will just use the last known supported version. Nice to know though that there may be a way to use a newer version.

    • João MacJ

      TranslateID (FolderName) in UserDefinedCommands (shortcuts.xml)

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      303 Views
      João MacJ

      @PeterJones said in TranslateID (FolderName) in UserDefinedCommands (shortcuts.xml):

      If you look again at the reference you linked, the TranslateID attribute is defined for the contextMenu.xml; however, the <Command> tags in the shortcuts.xml do not have that attribute listed as being available.

      Thus, I do not believe what you are looking for is currently possible. Thus, I think you would have to follow the instructions in our FAQ to put in a feature request to ask the developer to add TranslateID to the shortcuts.xml <Command> tag.

      Hello, @PeterJones.

      I truly appreciate your quick response and such a clear explanation!

      Indeed, upon rereading the documentation I referenced, I realized I misunderstood the use of the TranslateID attribute. It applies to contextMenu.xml, not shortcuts.xml, as I had mistakenly assumed. That was an oversight on my part, and I appreciate you pointing it out so objectively.

      In my case, this was just curiosity based on that mistaken understanding. It’s not something essential for daily use of the application. I’m glad to have learned the actual scope of this functionality.

      Thanks again for your kindness and clarification.

    • TM ST

      UDL- Recognize Any 32 Characters Surrounded by Commas

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      231 Views
      TM ST

      @PeterJones Thank for the fast response! I will give that a try.

    • Robert SnowR

      Import AutoHotKey.XML into NotePad++

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      394 Views
      PeterJonesP

      I see that a GitHub user @paulm31 is submitting a AutoHotKey_V2.udl.xml to the User Defined Languages Collection in PR #324 – I have to assume that’s related to this post, even if it’s not you, given the timing.

      That PR is merged, and CollectionInterface shows the AutoHotKey_V2.udl entry for me.

    • DISA InformatiqueD

      PHP language not in language list

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      301 Views
      DISA InformatiqueD

      @Terry-R

      Thank you…
      it was disable… Why? i don’t know but it’s ok now…
      ;-)

    • Joël PLANCHATJ

      Mc afee détecte également un virus sur la version 8.8.2 64 bits.

      Watching Ignoring Scheduled Pinned Locked Moved Security
      2
      0 Votes
      2 Posts
      19 Views
      PeterJonesP

      @Joël-PLANCHAT ,

      False Positive caused because there is no certificate:

      KNOWN ISSUE: https://community.notepad-plus-plus.org/topic/26978/known-issue-the-digital-certificate-is-not-available-in-version-8-8-2

    • Martin L. BuchananM

      Unexpected text display change for >=

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      2 Votes
      5 Posts
      357 Views
      PeterJonesP

      @BrBill said in Unexpected text display change for >=:

      @Alan-Kilborn I want to turn this off too. It also displays != as ≠. Does anyone know?

      You didn’t need to post a second time with the same question 15 minutes after your first post here.

      Besides, one answer in the post you were replying to – turning off DirectWrite, which is now setting it to GDI (most compatible) as of a few versions ago – would have worked for you if you’d tried it.

      Or, as I explain here, pick a font that doesn’t have the ligature feature.

      Either works.