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

      Compose for Notepad++ (another experimental plugin)

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      15
      7 Votes
      15 Posts
      610 Views
      PeterJonesP

      @Coises ,

      I think with v1.1, it’s a reasonable compromise between what would be ideal and what is practical. Thank you.

    • SuperCPUS

      How to set a different background color for the text before a certain line?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      9
      0 Votes
      9 Posts
      257 Views
      mpheathM

      @SuperCPU

      Do you have a solution for changing the background color for the lines after keyword “ENDCODE” too?

      A solution requires planning and development though only STARTCODE was previously mentioned. Now may need to revise the solution to what satisfies the new requirement. Indicators cannot do the entire width of the window though styles can do EOL filled styling.

      A UDL might be adequate with a little styling enhancement with LuaScript.

      Define a new UDL from menu Language -> User Defined Language -> Define your language... Set Default style backgroud to grey. Need to click styler button to access the styler dialog. Go to delimiters tab and for style 1 set Open as STARTCODE and Close as ENDCODE. Optionally. Click styler button and set background to a preferred color or set as transparent. Save UDL with a name.

      The lua script:

      local function EnhanceDoc() -- Enhance UDL with STARTCODE. if editor.LexerLanguage == 'user' then local start_pos = editor:findtext('^STARTCODE$', SCFIND_REGEXP | SCFIND_MATCHCASE) if start_pos then -- Style 0. local bg0 = editor.StyleBack[0] editor.StyleEOLFilled[0] = true -- Style 16: Delimiter 1. editor.StyleEOLFilled[16] = true -- Style 24: Terminator. editor.StyleBack[24] = bg0 editor.StyleEOLFilled[24] = true end end end npp.AddEventHandler('OnReady', function() EnhanceDoc() npp.AddEventHandler('OnSwitchFile', EnhanceDoc) end)

      May need to restart Notepad++ after setup of the UDL and the Lua code. Once the editor is ready and the document is active, then set the language to the UDL.

      Viewed with the default theme:

      startcode2.png

      The Python console shows the Style IDs in red so you know where the 0, 16 and 24 originate from.

      Other scripting plugins should be able to apply styles with similar code.

    • Drake_M__D

      Marking Sing Letters In a Document To Clear

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      73 Views
      Drake_M__D

      @Terry-R

      Your second option \sR(\s|$) worked like a charm.

      Thanks so much for the insight - huge help!

    • donhoD

      Notepad++ release 8.8.7 (signed with a legitimate certificate)

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      6
      3 Votes
      6 Posts
      3k Views
      Lycan ThropeL

      @donho ,
      And it updated flawlessly. Thank you for getting that smoothed out. When things like that, act up, it gives users the heebee jeebees. :-)

    • C

      possible to create a openfile dialog under jn-npp-plugin ?

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

      @PeterJones said in possible to create a openfile dialog under jn-npp-plugin ?:

      Or the plugin has a wiki , so that documentation might help you with your issue.

      For example, this page in its wiki describes how to call win32 api functions from the plugin. Using that, and the topic that @Alan-Kilborn linked, where @Ekopalypse showed how to wrap that same win32 api dialog using PythonScript plugin, combing the two ideas might allow you to do the same wrapping in jn-npp-plugin.

    • Neculai I. FantanaruN

      where exactly can I find the file where the new macro I just saved was saved?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      224 Views
      PeterJonesP

      @john-murphy said in where exactly can I find the file where the new macro I just saved was saved?:

      Also, go to to the search input window and type name:bbb or whatever you named the file if it’s not bbb. Windows will find it. Of course you need to search from a folder that you can reasonable expect to find the file, so that the search doesn’t take too long.

      That has nothing to do with the question asked. You do not name the file that Notepad++ stores macros in. It’s defined internally, and the answers above already explained where to find them.

      I cannot prove you are using generative AI, but it sure feels like it. That is expressly forbidden in this forum. You’ve had two posts like that. If you make a third post that has the same unhelpful pseudo-replies, you will be banned.

    • SuperCPUS

      How to show web links with a different color in Notepad++ ?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      138 Views
      SuperCPUS

      @PeterJones

      Changing only the ink color is much better than nothing, it works very well, thank you!

    • Steve RhoadsS

      Line wrap on line 1000 can cause continual wiggles

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      209 Views
      Alan KilbornA

      @Steve-Rhoads

      This is a known issue, reported several times. Here’s one of those times (that links to some others): https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13341

    • Bill ConnellB

      Installer Stub to allow calling it and always getting the current version to install during Windows Sandbox Spinups?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      74 Views
      NicholasN

      winget install Notepad++.Notepad++

      I think the sandbox has winget. It has been a while since I have used it. Use -i if you want to select install options.

    • Freon Sandoz 0F

      Feature Request: Ask before deleting record of current files

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      292 Views
      xomxX

      @Freon-Sandoz-0 said in Feature Request: Ask before deleting record of current files:

      from the record

      Maybe it’s about the already opened N++ session files and not about the recent files list?

      If so, rather check the Preferences > Backup > Remember inaccessible files from past session.

      More info in: https://npp-user-manual.org/docs/session/#inaccessible-files-in-an-active-session

    • V

      Windows 11 64bit, not able to install compareplus plugin either by pluginAdmin or manually on NP++ v8.6. Please help !

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      11
      0 Votes
      11 Posts
      4k Views
      PeterJonesP

      @ModelsRUs ,

      Reading the comments on the issue you created, it appears the plugin author has helped your confusion, both with regard to Compare coming pre-installed or not (which it doesn’t), but also regarding uninstalling it.

      But for those who don’t follow links to the issue boards, the short version:

      Notepad++ does not come pre-installed with ComparePlugin or ComparePlus plugin. It is safe to delete D:...\Notepad++_portable\plugins\ComparePlugin\ (as long as N++ is not actively running when you delete it), and it will not in any way, shape, or form mess up nppPluginList.dll. Not noted in the comments: the nppPluginList.dll essentially tells Notepad++ where to download plugins using the Plugins Admin interface; and while it does read the N++ plugins directory to find out what plugins and versions are currently installed, it doesn’t care if that changes outside its control.

      What happens if I install “ComparePlus” without “Compare” being removed?

      There would be two plugins in the Plugins menu, and each would set up its own toolbar buttons (and I’m not sure you could tell which buttons go with which plugin). And if you used the ComparePlugin comparison, it wouldn’t work right in Dark Mode (see here for a recent issue about that) the two can technically coexist, but you would just always have confusion over which you are using. the intention is to only have one of the two plugins installed. (And since ComparePlus was released, the intention has been for users to uninstall ComparePlugin and just use ComparePlus.)
    • bofhlusrB

      Looking for dBASE IV (old DOS versions) UDL

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      24
      2 Votes
      24 Posts
      3k Views
      Lycan ThropeL

      @James-Burke-0 ,
      Yeah…okay, whatever. It’s clear now, you don’t know what you’re talking about and pushing a product that isn’t what you say it is.

      Your statement is false, period. It can’t read all known DBF types, as you state because it can’t read level 7 DBF files, which has been the latest official dBASE file type for the past approx 28 years almost since it’s been written to work in Windows, so I’ll consider your postings to be uninformed spam. Have a nice day.

    • Jhorbam Baena OrozcoJ

      Editar formulas de excel en Notepad

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      10
      0 Votes
      10 Posts
      596 Views
      PeterJonesP

      @john-murphy said in Editar formulas de excel en Notepad:

      You can click on the cell so that the formula goes up to the input window (I don’t know what it’s called). Highlight the formula there, not within the cell itself. Then Cntl C in excel and Cntl V in NP++

      You didn’t actually read the question. The people who answered earlier did. Please don’t try to “help” by giving answers that just use keywords, instead of actually understanding the question asked.

      I cannot prove you are using generative AI, but it sure feels like it. That is expressly forbidden in this forum. You’ve had two posts like that. If you make a third post that has the same unhelpful pseudo-replies, you will be banned.

    • S

      autoupdater and connection temp.sh

      Watching Ignoring Scheduled Pinned Locked Moved Security
      7
      0 Votes
      7 Posts
      1k Views
      donhoD

      @soft-parsley
      Could you provide your gup.xml file from C:\Program Files\Notepad++\updater\ directory?

    • M Andre Z EckenrodeM

      Columns++ display anomaly

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      13
      0 Votes
      13 Posts
      1k Views
      CoisesC

      @Laurie-Stearn said in Columns++ display anomaly:

      Out of interest, getting similar behaviour in a UDL when selecting Arial as font as opposed to Consolas:

      <WordsStyle name="COMMENTS" fgColor="008000" bgColor="000000" colorStyle="1" fontName="Arial" fontStyle="2" nesting="0" />

      As before type a long line of text which overflows the wrap limit thus

      texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext

      Then insert before it the opening comment tag:

      /*

      Solid pink line appears below the long line which prevents any cursor movement below with down-arrow.

      Replacing Arial with Consolas for example doesn’t repro.
      Some rare irreproducible glitchiness with pink lines may occur in other situations by just typing the slash instead of the asterisk.

      Edit: Just realised this is for a plugin not installed - the issue seems to be with N++ itself. Sorry.

      When it happened with my plugin (Columns++) the cause turned out to be a wrapped line getting shorter (due to tab layout changing), so that it needed one less wraps. The solution involved temporarily disabling Scintilla’s line cache: something that can cause slow processing in large files with word wrap on. The problem doesn’t happen when editing itself makes the line shorter; it happens when something done after the editing is complete (like recalculating tab widths, or changing styles) causes the line to get shorter.

      My guess is that in this case, the text wraps to n lines after editing, before the new styling is applied; then, when styling is applied, the text only requires n-1 lines for wrapping, and the leftover line is magenta-marked. That marking is a Scintilla “feature” to show that something went wrong. (Why it doesn’t just correct the wrapping instead, I don’t know. Scintilla is open source, but it’s still pretty much a black box to me.)

      The practical fix is probably to avoid specifying different fonts (or font variations with differing widths) for different styles if you expect to use them with word wrap. For performance reasons, turning off the Scintilla line-wrapping cache would not be something Notepad++ would do.

    • Ollivier_64_frO

      Project files updated

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      332 Views
      PeterJonesP

      @Ollivier_64_fr said in Project files updated:

      Hello everyone,
      I have a question about project management: would it be possible to update project content without having to delete all the files and recreate the project? I searched the options without finding a solution… it might be more convenient.
      I hope this question hasn’t already been asked. I searched the forum before posting here without finding anything.
      Thank you for your answers.

      What exactly do you mean by “update project content”? The project panels (https://npp-user-manual.org/docs/session/#project-panels) aren’t “live”, in that they don’t automatically add or remove files from a folder (because “projects” are meant to be independent of the underlying folder structure). But you can manually add or remove files from a given project at any time, without deleting and recreating it.

      If you are looking for something that’s directory based, rather than manually adding/removing files, then the closest feature to what you want is Folder as Workspace (https://npp-user-manual.org/docs/session/#folder-as-workspace), though that shows all files in the folder hierarchy, rather than just specific filetypes.

    • Raja AdikusumaR

      Help for a JSON formatting.

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      2k Views
      PeterJonesP

      @Mudassir-Raza said in Help for a JSON formatting.:

      That JSON snippet looks fine — it’s just not indented properly, so it’s hard to read.

      And has syntax errors, since there are four arrays and two objects which are not properly terminated.

      You can format JSON in a few ways:

      In Notepad++, install the JSON Viewer plugin (as you already did).

      Or the JsonTools plugin mentioned above. I tried both on the original data: JSON Viewer refused to format it, because of the syntax errors. JsonTools warned about the syntax errors, but then made its best guess to close off the arrays and objects and then formatted it.

      Or, if you just want something quick in the browser, try a free online JSON viewer — it shows tree view and highlights errors instantly.

      This is a Notepad++ forum. Unless Notepad++ has no way of doing it, and especially for first-time posters, it is frowned upon suggesting external tools. And since both JSON Viewer and JsonTools can help with that messy data, to some extent, there is no reason to advertise external tools – they both have error detection, they both have pretty-printers, and they both have tree-view panels available, which covers all the features you mentioned of the website, so I can see no good reason to bring up that site.

      Given that the conversation was a year old, and the only new information you added was the advertisement for an external website, I was tempted to ban you as a spammer. And since I’m still not convinced that website traffic isn’t the only reason you posted, I am de-linkifying your post. Anyone who is curious about the site you’ve advertised will still be able to figure out where it is, but it will prevent automatic crawlers from wasting site bandwidth here as a redirect to the site you advertised.

    • Juan DelgadoJ

      Windows ARM64 25H2 Notepad++ 8.8.7 doesn't start

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · arm64 25h2 8.8.7
      1
      0 Votes
      1 Posts
      28 Views
      No one has replied
    • Vitalii DovganV

      XBrackets Lite v2.0 has been released!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      4
      3 Votes
      4 Posts
      2k Views
      Vitalii DovganV

      XBrackets Lite v2.0.3

      Glory to Ukraine! Glory to the heroes! fixed: CXBracketsLogic::OnCharPress was truncating a multi-byte character to a single-byte one, thus incorrectly treating e.g. 0x1D5B as 0x5B which is ‘[’.

      https://github.com/d0vgan/npp-XBracketsLite/releases/tag/XBrackets_v203

    • h-jangraH

      New Vim modal editing plugin release

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      1 Votes
      5 Posts
      3k Views
      Ava ThompsonA

      Thank you for the developing this plugin :)
      The feature I miss the most from vim is the visual block mode (Ctrl+V). Would love to see it implemented in the future.