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
    • Glenn MG

      Add current file to Workspace?

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

      @Glenn-M said in Add current file to Workspace?:

      Hi, first time posting here…
      I have a Workspace setup with a folder called Favorites that contains files I use frequently.
      Is there an easy way to add a currently open file/tab to the Favorites folder?

      Not via a single click.

      The only way I have found to add a new file to the folder is to use “Add Files…” which opens a file browser, so I have to browse to select the file that is already open in the editor. Unnecessary extra effort.

      You could right click on the tab of the file, then Copy to Clipboard > Copy Full File Path, then paste that into the Add Files… dialog, which would avoid having to browse.

      But you are right, it would be nice to be able to choose “Add active tab to project” in the same Project Panel menu as “Add Files…”

      If there is not currently a way to add an open file/tab to a Workspace,
      can that be added as a Suggested Feature?

      Look through the existing official issues, searching for either project panel or workspace (people sometimes use one term or the other for this same feature) and make sure the request doesn’t exist already. If not, click on the New Issue button and create the request.

      However, Project Panel features haven’t been updated much in the last few years, so I don’t know how likely it is. You might want to try the Explorer plugin (you can install it through Plugins > Plugins Admin, checkmark Explorer, then Install), which has a Favorites feature, and that might work better for you than a Project Panel anyway. I recommend trying that plugin out to see if it meets your needs – either instead of putting in the feature request, or to give you something similar to tide you over while you are waiting to see if the feature request is implemented.

    • Robert Or Janet DiebelR

      Compare plugin, output a list of line numbers that do not match

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

      @Robert-Or-Janet-Diebel said in Compare plugin, output a list of line numbers that do not match:

      I wish to be able to run a compare and output a list of line numbers that do not match. This, whether with Notepad++, the Compare plugin, or some other utility.

      “some other utility”: GNU’s diff command (which there are various ports to windows) could make a diff file or patch report similar to what’s described below. But anything that’s outside of Notepad++ and its plugins is OFF TOPIC here, so you’d have to look elsewhere for details of how to do that. Please don’t ask for off-topic (non-Notepad++) suggestions until it’s 100% certain that it can’t/shouldn’t be done in in Notepad++, and don’t expect more than hints if that’s the only way, because this isn’t a generic “transoform my text for me” forum.

      Never use Compare plugin; it is out of date and no longer supported, and has known dark-mode bugs. ComparePlus is the updated version of the Compare Plugin, and is the plugin you should use for comparing files.

      ComparePlus has had Generate Patch action since v2.0.0. That comes close to what you want, in that it generates a new file that has all the differences in an industry-standard “patch” file, which does list the line numbers that are different, but also includes the changes needed to convert from old to new version, so it might be more than what you want. But you could extract the info you wanted from that patch file.

      For example, if you had a patch file that looked like

      --- new 2 +++ new 3 @@ -1,6 +1,7 @@ one -two +two2 three +four has more alpha beta gamma @@ -16,4 +17,4 @@ nu xi omicron -pi +pie

      the lines in the @@ would indicate the lines that had changes (sometimes with context lines around them.

      -1,6 +1,7 says that “in the LEFT file, starting at line 1 for a total 6 lines, it is changed to the RIGHT file starting at line 1 and for a total of 7 lines” -16,4 +17,4 says “in the LEFT file, starting at line 16 with 4 lines, it is changed to the RIGHT file starting at line 17 for 4 lines.”

      So if you did a MARK for ^@@.*$ in regex mode and then Copy Marked Text, it would put all those line-number indicators in the clipboard, and you could paste those into a new tab that would just have the indications of which lines are changed.

    • T

      Why does my editor has this weird syntax highlighting?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      106 Views
      Alan KilbornA

      @th3me

      See https://community.notepad-plus-plus.org/topic/27306/faq-themes-in-v8-8-9

    • --xMRi---

      Writing a lexer plugin that has no menu items

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      2
      1 Votes
      2 Posts
      137 Views
      EkopalypseE

      @xMRi

      As far as I know, no. Npp explicitly checks this and throws an exception if no function is defined. So I would say, use an “About” menu item.

    • S

      Style Configurations Reset After Update

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

      @networkproblemsolver said in Style Configurations Reset After Update:

      @PeterJones

      But what if I want (need) to run in “Admin Mode” ??? Is Notepad++ unable to run in “Admin Mode” and still save Style Configurations? That seems silly.

      Security experts would tell you that constantly running any app in admin/root mode is a lot worse than silly.

      And since Notepad++ v8.6.6, there is no reason to run Notepad++ in Admin mode to edit/save UAC-protected files, because Notepad++ can ask for UAC Elevation for the individual save actions . So the only activity that you might still need to run Notepad++ in Admin mode for is when installing a new plugin, and you don’t need to be constantly running in Admin mode for that. That is: you most likely don’t “need” to run in Admin mode anymore.

      That said, the reason why Notepad++ often has problem with Admin mode and settings is because of cross-contamination of permissions: running an app in Elevated privileges makes WINDOWS treat that app differently. It may be that with your current setup, the Elevated/Admin-mode won’t allow writing to AppData (since that’s a per-user, and for some system configurations, WINDOWS won’t allow admin to write to %AppData%). Or it might be that because you often ran N++ as Admin that the AppData-based settings might have been created/saved with Admin-privileges, so when you run N++ as normal user it cannot read or save the settings. Without being able to look at your file permissions for you, I cannot say exactly what caused it – you would need to verify where Notepad++ is trying to do the settings, and look at the directory and the stylers.xml in that directory, looking at Windows’ SECURITY settings for both; and then maybe try running experiments to see whether changing a setting/style-configurator in Notepad++ is saved when you exit Notepad++ when running normally and/or when running as Admin.

    • Wolfgang GrafenederW

      config Search to ignore \CR \LF

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

      @Wolfgang-Grafeneder ,

      Read Find Text Copied From Excel Cell and the issue(s) it links to, as there was an entire recent discussion on this.

    • Offshore9521O

      I'm in a Paragraph Find and Replace Hell

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      1 Votes
      2 Posts
      84 Views
      guy038G

      Hello @offshore9521 and All,

      Humm…, @offshore9521, there are two separate problems with your regex !

      From your INPUT text :

      ‘Colt?’ He turns to face her, and clears his throat. Guilty sign. Very guilty. Probably has a guilty look on his face, but you can’t tell, because he’s still wearing that helmet so you can’t see his eyes.

      Your regex (?<![\.\!\?])\r\n([a-z]) means :

      If a \r\n sequence, followed with a letter (a through z), is not preceded by :

      A dot

      An exclamation mark

      An interrogation mark

      Then rewrite this letter

      BTW, you can shorter this regex as (?<![.!?])\r\n([a-z])

      But, the ’ character is not a character of the [.!?] list. Thus, this explains why your regex merges the lines 1 and 2

      Now, I suppose that your true goal was : if a line is not a true sentence, then merge that line with the next one with a space character ? This lead to the following regex S/R :

      FIND (?<![.!?’])\r\n(?=\w)

      REPLACE \x20

      So, any \r\n sequence, which respects the before and after conditions, is simply replaced with a space character

      Notes :

      As you see, I included the ’ character within the list of the forbidden chars, in the negative look-behind

      I used \w, which is identical to the [\u\l\d_] class character, instead of [a-z] to not bother about case !

      Remark :

      Instead of \r\n, I could have used the \R syntax with matches any kind of line endings ( \r, \n or \r\n ), but, because it is preceded by a negative look-behind, we must insert \r and \n as forbidden characters, as well !

      FIND (?<![.!?’\r\n])\R(?=\w)

      REPLACE \x20

      Best Regards,

      guy038

      P.S. : As an exercice, try to understand why the following regex S/R does not work as expected :

      FIND (?<![.!?’])\R(?=\w)

      REPLACE \x20

      To help you, don’t forget to click on the ¶ icon of the Toolbar !

    • P

      Can't get the old toolbar

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

      @prof-tech said in Can't get the old toolbar:

      Help! I have tried everything to get the old toolbar and it doesn’t appear! can anyone help me?

      Settings > Prefernces > Toolbar: the “Fluent UI” variants are the “new toolbar” and “standard icons: small” are the “old toolbar” (and the “Hide” checkbox turns it on and off)

    • Brenda Gross 0B

      RegEx assistance for adding a space before an Upper case letter

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      107 Views
      guy038G

      Hello, @brenda-gross-0 and All,

      Very easy with regexes !

      Open the Replace dialog ( Ctrl + H )

      Un-tick all box options

      FIND (?-i)(?<=\l)(?=\u)|_

      REPLACE \x20

      Tick the Wrap around option

      Select the Regular expression search mode

      Click, once only, on the Replace All button

      Voila !

      Notes :

      The leading part (?-i) is an in-line modifier which force to take care about the case of letters, meaning non-insensitive search !

      Then, due to the alternation symbol |, two individual regexes are performed, simultaneously :

      (?<=\l)(?=\u) which searches for an empty string between a lower-case letter and an upper-case letter

      _ which simply searches for the underline character

      In both cases, the replacement changes the regex search with an normal space character \x20. I could have chosen to type a single space char, instead !

      The regex search may also be expressed as a non-capturing group : (?-i:(?<=\l)(?=\u)|_), with the leading non-insensitive option

      Best Regards,

      guy038

    • Jayson AllenJ

      Theme busted!

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

      @Jayson-Allen ,

      See details in https://community.notepad-plus-plus.org/post/104192

      update: I have versions of the theme files which won’t have the ugly white backgrounds temporarily at .../themesPost889/PowerEditor/installer/themes ⇒ they will hopefully eventually be put into the main codebase, for distribution with v8.9 and future. But until then, you can

      Exit Notepad++ Go to that URL and download the raw version of your theme(s) For a normal Notepad++ installation, use Explorer to go to %AppData%\Notepad++ if there’s not a themes subdirectory, create it move the downloaded theme(s) into %AppData%\Notepad++\themes When you run Notepad++ next time, it will use the updated theme.

      If you have customized your theme with user-keywords or user-extensions, this would overwrite those… I will eventually be writing a FAQ which explains a way to work around those customizations (once I don’t have to link to a branch in my fork of the code to share the theme files).

      update 2: The installer themes in the source code have been updated to have all the styles needed (to be able to fix the problems from v8.8.9). You can go here to grab the theme file(s) you want: https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/PowerEditor/installer/themes

      New FAQ: https://community.notepad-plus-plus.org/topic/27306/faq-themes-in-v8-8-9

    • donhoD

      Notepad++ 8.8.9 release candidate

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      22
      3 Votes
      22 Posts
      2k Views
      Murray Sobol 1M

      @PeterJones
      Thanks, Peter, for the detailed instructions.
      Now, Notepad++ V8.8.9 launches, as expected.

      Murray

    • Pierrick ramP

      The update deletes the macro file.

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      101 Views
      Terry RT

      @Pierrick-ram

      I think you will need to provide more information. Such as copying the “Debug Info” from your Notepad++ installation and pasting it here. It’s under the ? menu.

      Terry

    • h-jangraH

      NppVim 1.8.0.0 Release

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      1
      1 Votes
      1 Posts
      66 Views
      No one has replied
    • donhoD

      I am new to GitHub and I have lots to say #2011

      Watching Ignoring Scheduled Pinned Locked Moved Humour
      1
      2 Votes
      1 Posts
      90 Views
      No one has replied
    • BlitzCoderB

      Change or specify plugins directory or folder location

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      8k Views
      BlastocystisB

      @PeterJones
      As a user of Notepad++ in a highly-controlled corporate environment, Peter’s explanation is lucid, thorough and relevant.

    • Chuck MooreC

      How do I change font?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      14
      0 Votes
      14 Posts
      175k Views
      K

      @guy038 ,

      Thank you for the elaborate explanation, clearly distinguishing the three drop-down lists and clarifying that in the Language list, Global Styles is a different from the others, as is Search Result.

    • FreeMeowF

      Praise Notepad++

      Watching Ignoring Scheduled Pinned Locked Moved Praise Notepad++
      1
      3 Votes
      1 Posts
      116 Views
      No one has replied
    • donhoD

      You've a lot of reasons to hate Notepad++

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      90
      5 Votes
      90 Posts
      146k Views
      Артем МитичкинА

      I hate this editor for his political position. Gone forever.

    • ThosRTannerT

      [New plugin] Linter++ - Linter plugin with message navigation.

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      2 Votes
      3 Posts
      5k Views
      ThosRTannerT

      Updated linter++ to v1.0.2

      This has mostly been concerned with changes to the dockable window with the results:

      You can click on a column header to sort by that column You can drag the column headers to reorder the columns You can configure the font used for display

      There’ve also been a few other minor improvements/fixes - see the Changes.md file

      Downloadable from https://github.com/ThosRTanner/notepad-pp-linter/releases if you can’t wait for the plugin list to be updated.

    • donhoD

      All the off-topic go here

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      4
      3 Votes
      4 Posts
      6k Views
      guy038G

      Hello, All,

      Like most of you still using Windows 10, I decided to migrate to Windows 11, at the end of october, because my computer was compatible ( BIOS with UEFI boot, TPM module and DirectX 12 )

      I eagerly awaited the November 11, 2025 update, which should have brought us a new Start Menu, correcting some of the current limitations However, no such update occured, so far, on my laptop :-((

      Of course, I know that I could use the GitHub tool, named ViveTool.exe. After downloading and extracting the last release https://github.com/thebookisclosed/ViVe/releases/tag/v0.3.4, I would have run, in an Administrator Commmand Prompt window, the command vivetool /enable /id:47205210 to get the new Start Menu, after a complete restart. Moreover, this action seems safe as we can revert back to our present Start Menu with the command vivetool /reset /id:47205210

      Ultimately, I prefer to wait for the usual Windows 11 staged roll-out to work in my favor !

      But, if you’re interested to test it, read, first, this recent article

      In this other article

      it is also said :

      ViVeTool is an open-source tool to unlock hidden features in Windows. It directly interacts with Windows Feature Management, which is the A/B testing system Microsoft uses. ViVeTool calls the official APIs and doesn’t hack or modify Windows files, so it’s mostly safe to use as long as you use it with correct variables.

      So, in the meanwhile, I tried to get used to the main aspects of Windows 11, which doesn’t change, fundamentally, my workflow ! Among other things, I updated my Win 10 list of shortcuts related to the Windows key and, little by little, I included, in that list, a lot of other shortcuts related to main applications of the Microsoft world.

      Here is the outline of this list, related to Windows 11 shortcuts :

      Shortcuts about the Windows and Office keys Shortcuts about Desktops and Taskbar Shortcuts about Text editing and Dialog boxes Shortcuts about Accessibility and the Magnifier feature Shortcuts about main applications (File Explorer, Terminal and DOS prompts, Microsoft Edge) Shortcuts about various applications (Google Maps, Settings, Xbox Game, Calculator, Sticky Notes) Shortcuts about audio / video applications (Movies & TV, Media Player, Photos, Sound Recorder) Shortcuts about drawing applications (Paint, Paint 3D) Shortcuts about basic text editors (Wordpad, Notepad)

      You can get this list, named W11_Shortcuts.txt, from my Drive account :

      https://drive.google.com/file/d/1Wt03527NLrg-bNfKFK1x_0QqdxnSB4PU/view?usp=sharing

      Notes :

      These shortcuts are those used with a standard American / English keyboard. As I’m French, I noted some variations with my French keyboard ! Thus, for any other language, some shortcuts may be different and not very easy to find out !

      Google Chrome’s shortcuts are not described in this list as I simply use the native Edge browser of Microsoft

      Moreover, all Microsoft 365 applications are not listed, so far !

      IMPORTANT :

      Some Microsoft UWP applications (Media Player, Paint, Paint 3D, Sound Recorder, Wordpad, Notepad) have additionnal shortcuts based on the Alt key, and generally tied to each user language. To show all of them, open these applications and simply hit the Alt key. You may, also, open any menu and hit the Alt key to get some new Alt available shortcuts. As they generally depend on each user language, these specific shortcuts are mostly not included in this list !

      Now, all these shortcuts consist of one or more keys from the list below :

      The Windows key, on the left side of the main keyboard

      The Office key, on the right side of the main keyboard

      One of the two Control keys, on both sides of the main keyboard : Ctrl

      One of the two Shift keys, on both sides of the main keyboard : Shift

      The Alternate key , on the left side of the main keyboard : Alt

      The Letter keys : Any upper-case letter, for example C

      The Symbol keys : Any symbol surrounded with parentheses, for example (+)

      Remarks :

      Some shortcuts are specific to the main keyboard => indication (Main)

      Some shortcuts are specific to the numeric keypad => indication (Numpad)

      Of course, if any shortcut have been left out of this list, please, let me know ! On the other hand, feel free to ask me about shortcuts that seem still unclear to you !

      I personally did not understand 9 shortcuts, which are identified, in this list, with the ??? mark, right after the shortcut !

      Best Regards,

      guy038

      P.S. :

      Do not forget to only reply within this off-topic thread !