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
    • guy038G

      Other thoughts regarding the "ReWrap Text to (Clipboard or 72) width" of the old "TextFX" plugin

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      9
      1 Votes
      2 Posts
      87 Views
      mpheathM
      @guy038 Seems like regex Wrap versus the others using ReWrap. The test does not appear to be an equal comparison. The test input files are UnWrapped. ReWrap would probably be for lines that are already Wrapped. Neither of the test files have a fully strict form of paragraphs. The license file is mostly paragraphs except for some lines. GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 These 2 lines are supposed to remain as 2 lines, not 1 paragraph. So if treated with ReWrap, would probably result as 1 line. Wrap can be done with this Lua code: local function main() local maxLineLength = 72 local line = 0 local eol = ({'\r\n', '\r', '\n'})[editor.EOLMode + 1] editor:BeginUndoAction() while 1 do local lineLength = editor:LineLength(line) if lineLength < 1 then break end if lineLength > maxLineLength then local startPos = editor:PositionFromLine(line) local endPos = editor.LineEndPosition[line] local maxPos = startPos + maxLineLength local breakPos for i = startPos, endPos do local posAfter = editor:PositionAfter(i) if posAfter > (i + 1) then maxPos = maxPos + posAfter - i - 1 end if editor.CharAt[i] == 0x20 then if breakPos and i > maxPos then break end breakPos = i end end if breakPos and breakPos < endPos then editor:SetTargetRange(breakPos, breakPos + 1) editor:ReplaceTarget(eol) end end line = line + 1 end editor:EndUndoAction() end main() It replaces the space <= 72+ to break at with an EOL. Suggest to keep the original unwrapped copy as I have no UnWrap or ReWrap code.
    • A

      Portable keeps showing up in "Open With" after I deleted it.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      1
      0 Votes
      2 Posts
      71 Views
      Lycan ThropeL
      @Adam-Harrington , First you can search your Registry file for that phrase E:\Portables\Notepad++.exe %1 or just notepad++ and look for the key/value pairs you find and change them to the new location of your Notepad++ directory. Or search this forum and the FAQ’s list for this information. I searched mine and found it with just “notepad++”
    • fml2F

      Windows list / Entry for the current tab not visible initially

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      2 Votes
      5 Posts
      332 Views
      fml2F
      For the reference: I’ve created https://github.com/notepad-plus-plus/notepad-plus-plus/issues/18554.
    • donhoD

      Notepad++ release 8.9.8.1

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      29
      4 Votes
      29 Posts
      8k Views
      Ilya GinzburgI
      @andrecool-68 for me it’s working: русский english עברית שפה קשה Notepad++ v8.9.8.1 (64-bit) Build time: Sep 24 2026 - 15:34:11 Scintilla/Lexilla included: 5.6.6/5.5.3 Boost Regex included: 1_90 pugixml included: 1.16 nlohmann JSON included: 3.12.0 Path: C:\Program Files\Notepad++\notepad++.exe Command Line: Admin mode: ON Local Conf mode: OFF Cloud Config: OFF WinGUp: present disableNppAutoUpdate.xml: absent Periodic Backup: ON Placeholders: OFF Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1) Multi-instance Mode: monoInst asNotepad: OFF File Status Auto-Detection: cdEnabledNew (for current file/tab only) Dark Mode: OFF Display Info: primary monitor: 1920x1080, scaling 100% visible monitors count: 2 installed Display Class adapters: 0000: Description - Intel® Graphics 0000: DriverVersion - 32.0.101.8991 0001: Description - Microsoft Remote Display Adapter 0001: DriverVersion - 10.0.26100.8521 0003: Description - Microsoft Remote Display Adapter 0003: DriverVersion - 10.0.26100.8737 OS Name: Windows 11 Enterprise (64-bit) OS Version: 26H2 OS Build: 26300.9711 Current ANSI codepage: 1255 Plugins: ComparePlus (3) mimeTools (3.1) NppConverter (4.7) NppExport (0.4)
    • F

      Plugin trust chain: unsigned DLLs, hash-only verification, and a writable plugin directory

      Watching Ignoring Scheduled Pinned Locked Moved Security security, 披露因素, trust
      3
      0 Votes
      3 Posts
      83 Views
      PeterJonesP
      same user also posted similar in this issue in comment in #17480
    • F

      Uninstall keeps user config: what survives a 'clean reinstall', and why it matters

      Watching Ignoring Scheduled Pinned Locked Moved Security security
      3
      0 Votes
      3 Posts
      57 Views
      PeterJonesP
      same user posted similar in this issue #10923 comment
    • CoisesC

      NPPM_GETCURRENTVIEW vs NPPM_GETCURRENTSCINTILLA

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      169 Views
      CoisesC
      @rdipardo said: I would point only out that the documented return value of NPPM_GETCURRENTSCINTILLA is not supported by the actual implementation; the FALSE-returning code path contradicts the statement that this API “Returns always True [sic]”. Technically so, though the FALSE value only happens when the caller sends an invalid parameter (LPARAM null, when it should be a pointer to an int). There’s also the additional result value of -1, which is documented, but which a comment in the code says “cannot happen”; the equivalent doesn’t exist in NPPM_GETCURRENTVIEW. What troubled me, though, was that the two calls base their responses on different things. I made some attempt to search the code. As best I could tell, the connection between Notepad_plus::_pEditView and Notepad_plus::_activeView is… haphazard. Even though they sound like they represent the same information in different forms (an integer that represents the main or secondary view as 0 or 1, and a pointer to one of two ScintillaEditView structures that represent the main and secondary views), I can’t “prove” that they always change together. So I cannot be certain that they do not represent different information, used for different purposes. If NPPM_GETCURRENTVIEW were meant merely to supersede the older, clumsier-to-use NPPM_GETCURRENTSCINTILLA, one would expect it to have been based on the same code (if for no other reason, for clarity). I couldn’t find any explanation of why this call was created or what problem it was meant to solve. So I was hoping perhaps someone would know and remember the rationale for the newer call and/or the purposes of the two different variables on which the calls are based, and could tell me either “they’re the same thing, use whichever you like” or “here is the situation in which they can return different results.”