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
    • 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
      158 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
      286 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.”
    • Patrick DanileviciP

      Save as .md default

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · markdown
      14
      0 Votes
      14 Posts
      14k Views
      MarkusBodenseeM
      @myfancytextgenerator said: One small caveat worth keeping in mind: this covers the default language of new documents, not the file-type list in the Save As dialogue — the langs.xml tweak described earlier in this thread is still the way to get a dedicated .md entry there. Sorry… but this is just not true. It is implemented even longer, since Aug 2024, than the latest update. See Issue #11096 and PR #15490
    • K

      Last Opened Files are not There when Reopening after Windows 11 Update

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      383 Views
      M
      Hi @Karen3D — one more angle worth checking, specific to the Windows 11 update scenario: session.xml is only written when Notepad++ exits cleanly. Windows updates are notorious for restarting the machine and killing running apps before they can save, so the session file can end up out of date or empty even with “Remember current session for next launch” ticked. A couple of quick checks that fit an IT-managed work laptop: Close Notepad++ yourself before restarting or shutting down, and confirm in Task Manager that no notepad++.exe process is left hanging around. A leftover process can hold on to the old session. Open a couple of files, close Notepad++ normally, then check the timestamp on session.xml in %AppData%\Notepad++. If it has not been updated, the write itself is being blocked — roaming profiles or redirected folders on corporate machines are a classic cause. If your files live on network drives, make sure the drive mappings are unchanged after the update. Notepad++ quietly skips files it cannot find at start-up. Worth ruling these out before going any deeper.
    • guy038G

      A little-known plugin of @Coises that's worth checking out !

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      3 Votes
      3 Posts
      448 Views
      guy038G
      Hello, @coises and All, Thank you very much, @coises, for your valuable advice ! As I already used a user definitions file, named Definitions.json5, containing the main examples from the documentation : Before starting N++, I simply included your modified implicit combining rules section to the definitions.json5 file, described below : { // A user definitions file is a JSONC file containing pairs of keys and values // listing what you type after the Compose key and what Compose types in response. // Each pair except the last must be followed by a comma. // Two forward slashes begin a comment: Compose for Notepad++ ignores // the slashes and everything after them on the same line. // You can use the standard escapes \n (new line), \r (return), \t (tab), // \" (quote within a quoted string) and \\ (backslash within a quoted string). // You can also use Unicode escapes, \u followed by four hexadecimal digits, // for example: "\u20ac" for "€", the Euro sign. Escape sequences for characters // outside the basic multilingual plane (code points 0x10000 or greater) // can only be entered as a UTF-16 surrogate pair. // You should save this file with a .jsonc extension. // Compose for Notepad++ reads the file each time you launch Notepad++, // so be sure to save it in a place where it won't be disturbed. "implicit combining rules" : { "'" : ["\u0301", "\u030B", true , "\u0317"], // acute accent | double | same as plain | acute accent below ")" : ["\u0306", false , true , "\u032E"], // breve | - | same as plain | breve below ">" : ["\u030C", false , true , "\u032C"], // caron/hacek | - | same as plain | caron/hacek below "," : ["\u0327", false , "\u0313", "\u0326"], // cedilla | - | comma above | comma below "ç" : ["\u0302", false , true , "\u032D"], // circumflex | - | same as plain | circumflex below "\"": ["\u0308", false , true , "\u0324"], // diaeresis | - | same as plain | diaeresis below "." : ["\u0307", false , true , "\u0323"], // dot above | - | same as plain | dot below "è" : ["\u0300", "\u030F", true , "\u0316"], // grave accent | double | same as plain | grave accent below "?" : ["\u0309", false , true , false ], // hook above | - | same as plain | - "+" : ["\u031B", false , true , false ], // horn | - | same as plain | - "-" : ["\u0304", false , true , "\u0331"], // macron | - | same as plain | macron below ";" : ["\u0328", false , "\u1DCE", true ], // ogonek | - | ogonnek above | same as plain "*" : ["\u030A", false , true , "\u0325"], // ring above | - | same as plain | ring below "é" : ["\u0303", false , true , "\u0330"], // tilde | - | same as plain | tilde below "_" : ["\u0332", "\u0333", "\u0305", true ] // underline | double | overline | same as plain }, "CC" : "\u2102", // double-struck capital C "rx" : "℞", // prescription symbol "dia" : "💎", // diamond symbol "br" : "Best Regards,\r\n\r\nguy038\r\n" // End of Post } Then, I started N++. To be sure that this json file was correct : I ran the Plugins > Compose > User definitions file... option. I clicked on the Select button. => No error occured ;-) And, indeed, no need to use the |Alt Gr] key and the [SP] key anymore, within the implicit combining rules section, on my French keyboard ! So, I also updated the main_Compose.txt file, in my Google drive account, which can be downloaded from the same address as before. Best Regards, guy038
    • T

      Notepad++ crashes after requesting admin rights

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      86 Views
      PeterJonesP
      @ThatsYar_ , Can you share your ?-menu’s Debug Info? Does the same problem occur if you turn off all plugins (using -noPlugin command line option)? Is it for all files that need admin? Or just in one directory? Or just the one file?
    • Steven GuillemetS

      KB5127936 and changes to the Windows 11 context menu.

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      2
      0 Votes
      2 Posts
      112 Views
      PeterJonesP
      @Steven-Guillemet said: Hopefully this will let Notepad++ ditch its current method Until that patch has effectively 100% deployment, Notepad++ should not change its implementation, otherwise it breaks something that currently works for anyone who hasn’t applied that fix. (If there’s a way to make the two methods coexist peacefully, or if there’s a way the installer can test the version and use the appropriate alternative, then that’s great. But if not, then breaking a feature to support bleeding edge is a bad idea)
    • V

      Apex Language is missing under Language Tab

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      251 Views
      PeterJonesP
      @vivek-viv , Unfortunately, there are an unknown number of “programming languages” or “data file languages” in the world, and no text editor can syntax-highlight 100% of them out-of-the box. Apex is not available in the syntax-highlighter library that Notepad++ uses, and until it is, it will never be in the upper portion of the Language list. To get it added: A feature request would have to be put into Lexilla, and then the Lexilla team, or external volunteer, would have to code up that lexer, and they would have to accept it, bundle it with the library; then Notepad++ could update to use a version with that, and then and only then, Notepad++ could be updated to enable and list the Apex language in the default menu. I’m not saying it’s impossible… just that it’s not likely to be fast. If Apex were similar enough to another language, then, in theory, the Apex language could be mapped to use the that existing language’s lexer, but given its own list of keywords. However, Notepad++ has the User Defined Language (“UDL”) feature, which allows you to define a keyword-based syntax highlighting – so you can put in various lists of keywords, operators, folding-keywords, and delimiter pairs, and get it to do a reasonable job of highlighting simple syntax in your language. The User Defined Language page, and all the UDL > pages in the manual’s table of contents below it, describe how to use the UDL system. There’s also a community-contributed User Defined Language Collection, where people can share UDL definitions that they’ve made, or find ones to use for themselves. I don’t see Apex there… but if you created one, you could share it there, so that other Apex users I did a quick search, and if this is the Apex you are talking about, then it looks similar to YAML (builtin) – so maybe trying to use the YAML lexer might be an initial workaround. And google search AI tells me that the HAML uses a similar structure – there is a UDL in the Collection for HAML, so you might be able to use that as a reference for how to get something like what you want for Apex. No guarantees, but it’s a starting point…
    • 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
      239 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++”
    • donhoD

      v8.9.9 Release Candidate will be available in one week

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      2
      3 Votes
      2 Posts
      861 Views
      donhoD
      The RC will be available before October 30. Sorry for the delay.
    • D

      Cannot Update Plugins

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      603 Views
      PeterJonesP
      @steeve-wick , That’s almost a direct quote of what I said a month ago. Were you trying to add new information?
    • Y

      [Plugin Update] NavigateTo

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development open tabs navigation tabs features
      24
      0 Votes
      24 Posts
      19k Views
      PeterJonesP
      @Screen-White said: I also contribute to that resource We do not allow links to fancy text generators here: every topic that has any becomes a honeypot for more such links, getting low quality posts that pretend to be responses but are actually just spam advertising. If you have something meaningful to say about Notepad++, feel free. But if you post another link to your fancy text generator website(s), you will be banned for spamming.
    • G

      Cannot make Move / Clone other view windows have the same font size

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      209 Views
      PeterJonesP
      @gromittoo , I have never seen that happen. The only way I know of for the two Views to appear to have different font sizes is if there is a zoom difference. I know you said you returned to default zoom, but the two Views don’t sync zoom in modern Notepad++, so you have to return to default zoom for each View separately. (Click one view, reset its zoom; click other view, reset its zoom) If your views are top/bottom, rather than left/right, they aren’t guaranteed to have the same number of rows, so right click on the divider between, and Rotate Left to get back to side-by-side views, which always have the same vertical space. Alternatively, if the font sizes are actually visibly the same, by a given line takes up more vertical space because of line wrap, you can drag the separation bar left/right to balance the width, or turn off line wrapping. I want to compare two files, side by side. My searches led me to use the View -> Move/Clone Current Document -> Clone to other view… That advice showed two copies of the same file, and doesn’t compare two separate files. You can move (not clone) the second file into the other view, if you really want two different files side-by-side. And if you’re really comparing two files, the ComparePlus plugin is your friend. (It can be installed using Plugins > Plugins Admin)
    • fml2F

      How to fold while at the closing element?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      1
      0 Votes
      1 Posts
      6 Views
      No one has replied
    • Guido ThelenG

      SQLinForm: new Usage Inspector finds unused variables in SQL

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      1
      3
      0 Votes
      1 Posts
      78 Views
      No one has replied
    • guy038G

      Surprising regular expression !

      Watching Ignoring Scheduled Pinned Locked Moved Blogs
      2
      1 Votes
      2 Posts
      1k Views
      S
      That’s a clever little experiment! I never really thought about using regular expressions to represent mathematical patterns like multiples of 3, but it makes sense when you look at the binary sequence. Definitely a fun way to explore just how powerful regex can be beyond ordinary text searching.
    • Mark OlsonM

      JsonTools v5.5. is live!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development json jsonviewer plugins
      24
      2
      7 Votes
      24 Posts
      29k Views
      Mark OlsonM
      JsonTools v8.6 is now available for download (it’s not up on the Plugins Admin yet, pending my PR to NppPluginList). Major changes: Fixed potential for Notepad++ to hang or crash due to: RemesPath queries with a for loop over an empty array Maliciously crafted schemasToFnamePatterns.json config file RemesPath queries that generate too-deep JSON (which previously could have caused stack overflow) List of 16 most recently used unique RemesPath queries (stored in config file, accessible by menu command) New control in JSON to CSV form, allowing columns to be listed in the order that they occurred in the first record, rather than in alphabetical order
    • FranciscoF

      rename files

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      521 Views
      S
      Regex is definitely the way to go for this kind of filename cleanup in Notepad++. It’s great how a simple search-and-replace can handle a whole list of filenames at once instead of renaming each one manually. Just make sure to test it on a few files first to avoid any unexpected changes.
    • Keith CollyerK

      wireloom in markdown viewers

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      9
      0 Votes
      9 Posts
      1k Views
      rdipardoR
      @Keith-Collyer said: Following a comment chain, I ended up adding a request to the markdig library here: https://github.com/xoofx/markdig/issues/952 Just an update for anybody following this thread: the feature request to implement wireloom was rejected by Markdig, the rendering library used by MarkdownPanel; it’s still possible for the plugin to implement the feature independently — without needing the WebView2 runtime — by back-porting a static copy of the wireloom.js module to the obsolete JavaScript standard that Internet Explorer supports; a working example of such a workflow can be found here; in the meantime, Preview HTML can now render Markdown and wireloom in Internet Explorer (version 11 )¹˙: [image: 1792597807908-preview_html_v148_ie11.gif] ¹˙ For Windows 7 users, that means ensuring update KB2841134 is installed, and “View as IE11” has been selected on the plugin menu: [image: 1792597754475-preview_html_win7_ie11_mode.png]
    • Alan KilbornA

      [FORK] Tangential Discussion about what advice is "on topic"

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      35
      1 Votes
      35 Posts
      16k Views
      M
      I think keeping discussions focused on the original topic helps everyone get more useful answers. At the same time, related side discussions can be valuable when they add context or share practical experience. A clear distinction between the main topic and tangential advice makes the community easier to follow.