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
    • Tom SassonT

      Cannot change Encoding to correct encoding of UTF-8

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      19
      0 Votes
      19 Posts
      1k Views
      CoisesC

      Reported as Issue #17033.

    • donhoD

      Notepad++ v8.8.5 Release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      15
      2 Votes
      15 Posts
      16k Views
      Сергей 0С

      Hello. In version 8.7 and earlier (including version 8.8.5), the cursor appears out of place. Please fix this.
      https://iimg.su/i/xy7x0S

    • Mark BoonieM

      Wrong font used

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      16
      1 Votes
      16 Posts
      4k Views
      PeterJonesP

      It appears that in my collection of fonts, Text is a variant like Thin, Medm, Bold, etc., because it works as expected with the rendering mode set to GDI instead of DirectWrite.

      I don’t know if the font collection was repackaged on Google and Text was corrected,

      Like I said, Google fonts doesn’t have the Text variant: I had to get that from fontsquirrel

      perhaps it’s still mispackaged internally to IBM, so that it fails for me.

      I doubt that’s it.

      Thanks for your time, it’s greatly appreciated. (Not that it matters any more, but I’m on Windows 11 and my debug info follows.)

      Well, there goes my Win11 theory. :-(

      Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)

      … so this was taken when you were still in DirectWrite.

      Display Info:
      primary monitor: 3840x2400, scaling 300%

      Ooh, that’s interesting. Maybe it’s a high-DPI issue. (Notepad++ still has some pretty weird bugs when you have a high-DPI monitor. Something specific to the Text version of the font might trigger one of those.)

      But, anyway, if GDI works for you, that’s great. (Just be warned that in GDI mode, if you try to use an emoji or other glyph that’s not in your font, Windows might not be able to display the character from another font, like it can when you are in DirectWrite mode.)

    • Kim S. AndreasenK

      N++ opens ANSI file incorrectly in Win11 - why?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      12
      2 Votes
      12 Posts
      314 Views
      Kim S. AndreasenK

      @Coises
      Thanks, but I am pretty sure that I have tried that without success,
      Perhaps the reason it didn’t work is that I probably had the ‘Use Unicode UTF-8 for worldwide language support’ checked, which according to @Peter Jones would invalidate the solution.

      Thanks a lot to both of you for valuable and knowledgeable support!

    • Clyde DarbyC

      View...How do I add browsers, so that I may run a program from different browsers.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      31
      0 Votes
      31 Posts
      5k Views
      James Burke 0J

      @PeterJones Good idea. Regardless, NPP is much nicer to use after your “how-to-fix-it” script, and I’m thankful that you could provide a way to fix it.

    • Kendall DeMottK

      Session Fails ? ? ?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      12
      0 Votes
      12 Posts
      675 Views
      PeterJonesP

      @Kendall-DeMott said in Session Fails ? ? ?:

      @Terry-R
      Terry TY for your help and suggestions.

      I don’t know anything about Notepad++'s own backup system,

      Then read the FAQ, as @Terry-R suggested. Understanding is always better than not understanding.

      PS, when I looked in Notepad++'s backup folder, all there is is just file that load a single tab from mods that I edited, but none of the file were the (5) that I use all the time,

      That “backup” folder is where Notepad++ keeps the unsaved changes for any files that have unsaved changes. As soon as you save a file, it will delete the backup, because the periodic backup copies are only intended for tracking unsaved changes; once you save a file, it has no unsaved changes, so there is nothing to track. Similarly, if you close a new 1-style never-saved tab, Notepad++ will prompt you to make sure you aren’t about to lose all your changes with never saving it; but it trusts you: once you tell it you don’t want the file, it will accept your decision, and close that file and remove the periodic backup because the periodic backup is only for files that are actively open in Notepad++.

      funny how it backed up all these single files, but not one of them is one of the five tabs that I would open on almost a daily basis.

      It backs up exactly the ones that are currently being edited in Notepad++, no more and no less.

      I was keeping (backing up) the session file from Notepad++ install Dir, this has never failed in the past.

      That very much surprises me, since in a normal installation where your settings files (and backup directory) are in AppData (which yours is, as shown by your Debug Info), then the active session.xml file is the one in AppData, not the one in c:\program files\Notepad++\session.xml

      This is the session file, you can clearly see the (5) lines are there, they just not longer load from this file when the default session file from Notepad++'s install Dir is overwritten by my BU file copied from the install Dir:

      You seem to be saying different things about the session.xml file. When you try to “restore” you session file from the backup, where do you copy it from? Where do you paste the file to? What order do you do things? Because some of your phrasing implies you are backing up your session file into the installation directory, and other of your phrasing implies you are using the one in the installation directory as the backup. And I’m confused what you’re actually doing.

      Assuming you have some directory that I will call c:\backup\ which contains c:\backup\session.xml that looks like what you pasted in your reply, then the steps to get back that session would be:

      Exit all copies of Notepad++ Copy c:\backup\session.xml to %AppData%\Notepad++\session.xml Open Notepad++ Assuming those files still exist on the I: drive and the drive is accessible, those files will open at this time

      However, any usaved changes that didn’t get saved to the files before will obviously not be there, because whatever went wrong earlier that caused your session to get messed up caused Notepad++ to think it was safe to delete the snapshot from the backup\ folder, so your unsaved changes for those files no longer exist. Going forward, you need to keep in mind that Notepad++'s backup folder is really misnamed and should be called a “snapshot” folder – it’s where a “snapshot” of the unsaved changes are stored, but it’s highly temporary, and should never be relied up for long term backup.

      My recommendation, and the recommendation of most of the regulars here, is that you take an active role in backing up your data, and don’t rely on backup settings that you don’t understand. This is the advice I have incorporated in to the FAQ.

      If a file or data is critical: 1) save to a known location, often; 2) have an established backup system that is independent of Notepad++; 3) when appropriate, use revision control software like svn or git, so you can better track changes over time. Doing anything less than that says that you don’t actually think the data is critical.

    • D

      Notepad++ DLL Hijacking Vulnerability (CVE-2025-56383)

      Watching Ignoring Scheduled Pinned Locked Moved Security
      10
      0 Votes
      10 Posts
      933 Views
      donhoD

      https://notepad-plus-plus.org/news/v886-released/

    • Dan EastwoodD

      Setting a UDL as default for extension

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      9
      0 Votes
      9 Posts
      286 Views
      Dan EastwoodD

      @PeterJones

      That seems to have done the trick!

      Thank you so much for all your help today.
      alt text

    • Julian RedGJ

      After changing to admin mode on windows, a black line appears over selected line

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      277 Views
      Julian RedGJ

      @Mark-Olson I updated all the plugins because, as you suggested, they were too outdated
      thanks a lot

    • D

      Find start of line up to specific character, and copy this to end of line.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · replace
      6
      1 Votes
      6 Posts
      132 Views
      guy038G

      Hi, @dad3353, @gerdb42 and All,

      BTW, @dad3353, when you don’t see, clearly enough, the scope of each group of a regex, do a test with a small bunch of your INPUT text, using this kind of replacement :

      REPLACE >$1<\r\n>$2<\r\n........>$n<\r\n-------------------------\r\n

      So, let’s imagine this part of your INPUT text :

      gv_fire_accu_maxi = GlobalVariables. gv_fire_dura = GlobalVariables. gv_fire_relo = GlobalVariables. gv_fire_relo_mini = GlobalVariables.

      Then, with the specific search/replace, below :

      FIND (?-s)^(\w+)(.*)$

      REPLACE >$1<\r\n>$2<\r\n-------------------------\r\n

      You would get this OUTPUT result :

      >gv_fire_accu_maxi< > = GlobalVariables.< ------------------------- >gv_fire_dura< > = GlobalVariables.< ------------------------- >gv_fire_relo< > = GlobalVariables.< ------------------------- >gv_fire_relo_mini< > = GlobalVariables.< -------------------------

      Then, it becomes easy to note the scope of each group, from line to line, which is the contents between its > and the < delimiters !

      Of course, you may choose any similar replacement like, for example, |$1|\r\n|$2|\r\n-------------------------\r\n

      Best regards,

      guy038

    • Joep KregtingJ

      All lines in a file have collapsed into one line.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      1 Votes
      6 Posts
      456 Views
      Mark OlsonM

      JsonTools maintainer here.

      The sort_keys setting in JsonTools should be set to True when pretty-printing JSON for comparison.

      This is because the order of keys in a JSON object doesn’t matter: {"foo": 1, "bar": 2} and {"bar": 2, "foo": 1} are the same, but a general-purpose diff tool like ComparePlus doesn’t know that.

    • Neko_KaiohN

      Multiple lines merging when saving as HTML - Want to stop that

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      8
      0 Votes
      8 Posts
      375 Views
      Neko_KaiohN

      @pbarney Finally, some actual assistance on this forum. Thank you!

      The code I mentioned that was spat out included the <pre>, just in a different format. So I guess my fiddling was on the right path. I appreciate you taking the time to reply though, it gives me more info on what that code is/does.

    • G

      "New UI" for NPP here

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      -2 Votes
      5 Posts
      189 Views
      G

      @PeterJones

      If you have compare plugin installed you can use it, compare english.xml with english_customizable.xml I provided and you’ll see all differences. Anyway below is explanation of couple of them (ones that you didn’t mention).

      Ps. you probably know this but you can make context menu and tab context menu work in both localizations by referring to items by their IDs instead of their names. IDs can be found with NPPUISpy plugin or by reading english.xml localization file.

      renamed “Window” menu as Tabs as to my observations items inside are tabs, not windows.

      “containing folder”. I have not heard this term used anywhere else than NPP. Most common name for showing file folder in explorer is “Show In Explorer”, sometimes also “Open in Explorer”. IMO in this context “current folder” is more intuitive.

      “close multiple documents” --> “close multiple tabs”. How often people use NPP to edit “documents” ? For me I edit mainly script or programming source code, txt, ini, xml files, etc… Document gives completely wrong impression (in my opinion) so tab is a better term.

      “edit - insert”–>“edit - insert date, time”. If you use the program seldom you will not remember what sort of insert options there are inside so better to have more descriptive menu item name.

      “Convert case to”–>“Case”, “Line Operations”–>“Line”, “EOL Conversion”–>“EOL”, unneeded words cluttering UI

      “Auto-Completion”–>“Auto-Complete”, latter is de-facto term used for this feature

      “View - View current file in”–>“View - Open with”, Open with is more common way to describe this feature

      “Encoding - Character Set”–>“Encoding - Non-English Encoding”. Character set is pretty ambigous name but this submenu contains only encoding related to non-english languages so I thought this name would be more descriptive.

      “Language - User Defined Language”–>“Language - UDL Settings”. IMO things related to UDL were maybe most confusing and illogical part of NPP UI. So I did a lot of changes there.

      “Reload from Disk”–>“Reload”. Usually it is called just Reload or Refresh

      “Open in default viewer”–>“Open in default program”

      “Folder as Workspace”–>“Workspace - Panel”

      “Synchronize Horizontal Scrolling”–>“Sync Horizontal”

      “Focus on Another View”–>“Focus on Other View”

      “Open User Defined Language folder…”–>“Open userDefineLangs Folder…”

      “Notepad++ Online User Manual”–>“USER MANUAL”

      “Run…”–>“Open External Program…”

      “Close - Close All BUT This”–>“Close - Other Tabs”

      Close - Close All to the Left"–>“Close - Left”

      “Find in Files”–>“Search in Multiple Files”. This was especially confusing. I had no idea what Find in Files would mean but Search in Multiple Files is pretty self explanatory.

    • VTGroupGitHubV

      Open files with NPP_EXEC then switch to the tab of the first opened file?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      89 Views
      Vitalii DovganV

      I’ve added this case to the Manual!
      https://d0vgan.github.io/nppexec/?q=4.6.20

    • Franz-Josef BadeF

      Assigning a special UDL Languages

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      119 Views
      Franz-Josef BadeF

      @PeterJones
      Again, thanks a lot and good luck/success for your further work.
      Ps. Do you know perhaps an old program “VEDIT”? I worked with it for some decennies ;-) , but …

    • RaviShankar RR

      Tall tops/bottoms of Devanāgarī letters are clipped in monospace fonts

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      1 Votes
      5 Posts
      161 Views
      PeterJonesP

      @mpheath said in Tall tops/bottoms of Devanāgarī letters are clipped in monospace fonts:

      The line height can be altered by increasing the extra ascent or descent with using the LuaScript plugin.

      Or using PythonScript plugin: add to startup.py:

      editor.setExtraAscent(8) editor.setExtraDescent(6)

      And make sure Plugins > Python Script > Configuration has Initialisation set to ATSTARTUP.

      Or ExtSettings plugin, using the Upper Line Spacing and Lower Line Spacing fields.

    • James Wisecup 0J

      Window sort back to original tab order (default) ...

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      182 Views
      Alan KilbornA

      @James-Wisecup-0 said:

      Maybe it’ll be a feature in the near future .

      Likely not.

    • MidnightGardenM

      Separate file association names?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      397 Views
      NicholasN

      Here is my post about changing file type icons in the registry. It also changes the file type descriptions.

    • Jim GarrisonJ

      Column Mode Indent?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      12
      0 Votes
      12 Posts
      5k Views
      Anonymous UserA

      @PeterJones That fixes everything! Thank you so much! Apparently I need to be better about updating N++ plugins.

    • caramadraC

      Pasting columns into txt from xlsx

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      46 Views
      caramadraC

      Thanks, @Terry-R and @PeterJones - there’s a lot in that plugin that I’m not sure I’ll need or understand, but the Elastic Tabs does what I need for now.