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
    • Craig W.C

      Turn Off Paragraph Highlighting

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      105 Views
      CoisesC

      @Craig-W said in Turn Off Paragraph Highlighting:

      How do you turn off the automatic highlighting of anything you are typing. I went to settings and turned de-selected everything under highlighting, and it hasn’t changed anything. I don’t want the background highlighted as I type or have to go to a previous paragraph and it’s all highlighted.

      Try changing Settings | Preferences | Editing 1 | Current Line Indicator to None.

    • donhoD

      Help needed - Forensic extractor result analyzing

      Watching Ignoring Scheduled Pinned Locked Moved Security
      3
      0 Votes
      3 Posts
      582 Views
      donhoD

      @xomx said in Help needed - Forensic extractor result analyzing:

      @donho

      What is that for (is it for specific HW, OS or network analysis)?

      Ubuntu on a VPS

      Fullname of the forensic SW

      “Forensic Extractor”

      ballpoint.fr

      It’s rather to analyze the results to make sure if anything is OK. Note the VPS is only for the wingup.org, whereas notepad-plus-plus.org is on a sharing hosting service.

      Thank you for the ref
      I will check this company.

    • conky77C

      show the current zoom

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      30
      1 Votes
      30 Posts
      20k Views
      Alan KilbornA

      @Javier-Utrilla said in show the current zoom:

      something like U | Zoom +10

      It’s fine…but why not make the abbreviated encoding MORE descriptive, and the zoom info LESS descriptive. E.g. (just my thinking): U8B |Z+10

    • Chec PufosC

      Need help with finding and replacing

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

      @Chec-Pufos ,

      Your specs are more vague than you think they are.

      Assuming you want to replace any positive integer immediately after that specific I:max= with 987 and any positive integer immediately after that specific I:min= with 654, then it could be done with something like:
      FIND = (?-is)(Size\s+{\s*.*\R\s*I:max=)\d+(\s*.*\R\s*I:min=)\d+
      REPLACE = ${1}987${2}654
      SEARCH MODE = Regular Expression
      REPLACE IN FILES

      hopefully, you can figure out what to change in order to replace with values other than 987 or 654

      highly recommended: always back up your data before trying a regex that someone hands you; always try a new regex on a single file and make sure it behaves as you expect before trying on the full 30 files.

      ----

      Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
    • Pierre le LidgeuP

      Cursor become black square at line selection

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

      @Andrzej-Jaworski Possibly yes if want to try the LuaScript plugin.

      Install the LuaScript plugin from the menu Plugins -> Plugins Admin which is just 2 DLL files approximately 1 MB in size. Once Notepad++ is restarted then from the menu Plugins -> LuaScript -> Edit Startup Script which will open startup.lua in the editor.

      Add this code:

      local function EventReady() -- Set SC_CURSORARROW instead of SC_CURSORREVERSEARROW. for i = 0, editor.Margins - 1 do editor.MarginCursorN[i] = SC_CURSORARROW end end npp.AddEventHandler('OnReady', EventReady)

      Notepad++ needs restart before the code in startup.lua will be run.

      I tested it initially without the ready callback event though consider as a good idea to use it so that Notepad++ is in a ready state before applying the user code.

      It appears to work OK as I typically set an inverted arrow which is translucent and I do not see the white reversed arrow over the margins. I have not experienced the black box so cannot state that it is a solution to your problem. If the margin count changes due to plugins adding margins then not sure what may happen though might be better than a black square entirely for all of the margins.

      If you have PythonScript plugin or similar, then possibly could use similar code for that language.

    • Ertan KüçükogluE

      Pascal multi line string highlight

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      648 Views
      EkopalypseE

      @ViniwDOrazio

      Yes, when working with multi-line matches enclosed by the same pre- and suffix, you should try to match something unique before the prefix.
      If the number of lines is fixed, you could also adjust the offset configuration parameter accordingly.

    • El Greco 0E

      TABS CTRL+TAB, CTRL+TAB+SHIFT

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

      @El-Greco-0 ,

      The Ctrl+Tab / Ctrl+Shift+Tab is the “Document Switcher” feature. By default, Settings > Preferences > Misc > Document Switcher has ☑ Enable MRU behavior checkmarked, which turns on Most Recently Used (MRU) order for the Ctrl+Tab order. If that is unchecked, then the Ctrl+Tab order is determined by the order of the tabs in the view, so if you turn off that option and use Window > Sort By > Name A to Z, then Ctrl+Tab will follow alphabetical order.

      The reason why Ctrl+Tab defaults to MRU, is because it is often (maybe even mostly) used as the quick/simple “swap between this tab and the last tab I used”, rather than cycling through the entire list. Also, there is a separate set of keystrokes, Ctrl+PageDown for next-tab and Ctrl+PageUp for previous-tab, which already follows the order of tabs in the view (so also affected by the Window > Sort By > … sorting), so it’s already easy to navigate between tabs in the view order by another similar means – so again, it makes sense to default the Document Switcher Ctrl+Tab to use Most Recently Used behavior…

    • S

      Mismatch Between Document List Sorting and Active Tab Order After Updating Notepad++ from 8.8.8 to 8.9

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

      See that ︿ above the Name column of the Document List? Like most tabular data tools (spreadsheets, or the data tables in Wikipedia, or what have you), that indicates that the data is being sorted by that column (if you right click, and add the extension column, you can sort by either column). The sort indicator is a 3-state toggle: pointing up ︿ means it’s sorting in alphabetical order, pointing down ﹀ means it’s sorting in reverse-alphabetical, and gone means it’s sorted in the order of your tabs.

      up ︿ down ﹀ none 98a5bc45-296d-41cb-8baf-635e729f540f-image.png 4b34c789-9bf5-4185-8d46-eceebbf07ced-image.png 1a0eadaa-367e-4f37-a2e0-0b84748c5cb1-image.png

      Nothing changed in Notepad++ itself; you just clicked that header once (intentionally or accidentally), so it’s now sorting alphabetically, like it thought you wanted. You just have to click it two more times to get it to match the tab order.

    • PeterKeeP

      Undo/Redo (CTRL+Z/CTRL+Y) behaves unexpectedly after a few hours (NppFTP, NPP 64-bit, Win11)

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion undo undo history ctrl+z
      6
      0 Votes
      6 Posts
      6k Views
      xomxX

      @Justin-Goodell said in Undo/Redo (CTRL+Z/CTRL+Y) behaves unexpectedly after a few hours (NppFTP, NPP 64-bit, Win11):

      use the “alt” key to highlight a chuck of text on multiple lines, then delete that section

      Yep, there was that “alt” column mode +DEL undo regression (from N++ v8.8.9), some details & STR in the fix-PR:

      https://github.com/notepad-plus-plus/notepad-plus-plus/pull/17307

      The fix is in the already released v8.9 but due to some other problems in that version, it hasn’t been triggered for a N++ autoupdate (so if you wanna use it, you have to dl & run the v8.9 installer yourself).

      @PeterKee
      Do you also use N++ macros?

      Currently I’ve identified another such (this time a longstanding) bug in the N++ codebase (PR fix is still in progress, it’ll be hopefully in the next version, for a STR look here).

    • donhoD

      Support for Plugins Admin & NppPluginList

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      47
      2 Votes
      47 Posts
      70k Views
      CoisesC

      @Ivo-Krab said in Support for Plugins Admin & NppPluginList:

      but modifying the C:\Program Files\Notepad++\plugins is understandably blocked without admin access.

      Would it not be possible to allow (as a config choice) to install them in %APPDATA%\Notepad++ instead

      The problem is that plugins in Notepad++ can do anything Notepad++ itself could do. They are C++ programs operating in the same security context as Notepad++ itself. From a security standpoint, allowing plugins in a directory that can be modified without admin access would be equivalent to allowing access to Program Files without admin access.

      As I recall, that was allowed at one time, and this is why it was removed. Security-sensitive organizations determined that they could not install Notepad++ at all unless they could stop users from installing their own plugins. The developer decided it was better to remove the capacity entirely than to try to implement a switch of some kind.

      The work-around, if you can run programs that are not installed in Program Files, is to use a portable copy of Notepad++. If you are not allowed to do that, then logically you would be forbidden to run Notepad++ plugins in a directory you control, since it would grant you exactly the same access.

    • D. KirkpatrickD

      "Run" add-on for Run in Browser

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

      @D-Kirkpatrick ,

      I know the “Shortcuts” XML is the file to edit and that there is also a copy of that in %appdata% but so far I cannot put in my changes.

      v8.9 still works with all my saved Run menu commands in %AppData%\Notepad++\shortcuts.xml, and I can still edit that file following the standard instructions for editing a Notepad++ config file found in the user manual

      If you look at the shortcuts.xml file’s properties in Windows Explorer, do you have write permission to the file (you should, and you need it)

      If that’s not it, you’ll have to say the exact steps you are using that aren’t working (and share your ?-menu’s Debug Info), otherwise it’s really hard for us to guess what’s going wrong for you.

      I’d also like to add in MS Edge

      No need: View > View Current File in > Edge has existed for years.

    • L

      What needs to be copied from old to new Notepad++ installation?

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

      @leestwise ,

      For a normal installation, then you can just copy over everything from %AppData%\Notepad++\ from the old to the new (and if you customized any of your autoCompletion, those will have to go from c:\program files\Notepad++\autoCompletion\*.xml on the old to the new… but customizing those is not as common as other customizations)

      (You also, of course, have to install Notepad++, and all the plugins. If you don’t want to use Plugins Admin to do the plugin install, you could just copy from c:\program files\Notepad++\plugins\ on the old to the new… but since many plugins may have been updated, this is a good chance to make sure you’re grabbing the most recent version, rather than just copying over the old-and-possibly-outdated version. And don’t overwrite c:\program files\Notepad++\plugins\config\nppPluginList.dll, as you always want to have the most recent from the installation, not whatever old plugin list was on the old machine.)

    • Eugene BrennanE

      Simple Question: Can I View HTML Tags?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      170 Views
      CoisesC

      @Eugene-Brennan said in Simple Question: Can I View HTML Tags?:

      Surprisingly, it appears difficult to find an answer to this from Googling. I want to migrate articles from a website to Blogger. I’m using Reader View in Firefox which strips a lot of the superfluous stuff on the source website and then I paste to Notepad. From there I copy and paste to Blogger. Now this strips all HTML tags and when I post from Notepad to Blogger, all the content is enclosed by a single <p> tag and multiple <br /> tags within the text. I can’t paste directly from the source website to Blogger because it brings in a lot of unwanted HTML stuff from the previous website. This causes multiple problems that I won’t detail here, mostly as regards inserting images into the text. So my question is, does Notepad++ strip all HTML (I can’t find any way of changing to HTML view mode like I can in the Blogger Designer) and if so, is there a way I could retain at least <p> and <br /> tags?

      Try selecting and copying what you want from reader view, then use Edit | Paste Special | Paste HTML Content in Notepad++. It will still require some cleanup, but it will probably come closer to what you want.

      There is no native HTML view in Notepad++. There is a plugin, but it just shows the HTML as a sidebar; you can’t edit within the formatted text. Personally, I find it easier and more reliable to view the file in Firefox to see how the HTML renders. (I set F5 as a shortcut for View | View Current File in | Firefox.)

    • S

      Help with deleting the the first three lines and the last four lines as a batch for 200 files

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

      1: How can I tell NP++ to search for multiple different text snippets at once? For example all instances of 45/23 31/89 and 21/77 should all be replaced with 66/55

      (a|b|c) will match a or b or c, so for the exact three you said, it would be (45/23|31/89|21/77) as the FIND and 66/55 as the replace.

      But if you’re not describing it well, and you just want any two-digit fractions of the form ##/## to be replaced with 66/55, then it would be \d\d/\d\d (where \d is regex-speak for “any digit”)

      If neither of those is what you really want, you will need to give more examples of what should and shouldn’t match.

      2: How can I tell NP++ to delete the first three lines and the last four lines (the last line is always empty) of a file?

      First three lines: FIND \A(^.*?\R){3} will match the start of file and the first three lines, and replacing that with empty text will delete them.

      Last four: FIND (^.*?\R){4}\Z will match four lines and the end-of-file, so replacing that with empty text will delete them.

      Fancy: do both with the | to say “either/or”, so FIND = \A(^.*?\R){3}|(^.*?\R){4}\Z

      (don’t have . matches newline enabled)

      All of that syntax is described in the User Manual regex section, so if you want more details, you can load that page and use your browser to search for \A or \Z or similar; the concepts used were anchors (for beginning/end of file), multiplying operators (for doing N lines), and groups (so the multiplying operators apply to the entire-line matcher)

      200 files

      Regex will work in the Find in Files, which is how you make it apply to that many files. But try it in one open file first, to make sure it does exactly what you think. And for bulk operations, always keep a backup, in case things don’t go as you expected.

      ----

      Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
    • Arí Ricardo OdyA

      Page with the license fixed in front of the text

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

      @Arí-Ricardo-Ody ,

      v8.8.2, like every other version of Notepad++, shows the license when you use ?-menu’s About Notepad++ entry, or click the F1 key on your keyboard (default shortcut).

      1e29ea25-95d1-4882-a90e-35b5122c61ce-image.png

      But it’s super-simple to get rid of. You can click OK or hit the ESC key on your keyboard, and it goes away. (The ESC key won’t work if you’ve clicked in the main Notepad++ window after the About dialog appears, because the ESC key needs the dialog to have focus to work. You can give the dialog focus by clicking anywhere in that dialog.)

      The problems that I can only guess you might be having:

      You clicked somewhere else, so ESC doesn’t work for you. Possible fixes: clicking the OK button clicking anywhere in the dialog’s window then typing ESC The OK button isn’t visible. Possible fixes: clicking on the About window somewhere, then typing ESC clicking on the About window somewhere, then use Alt+SPACEBAR to bring up the System Menu for the dialog. From there, you can select Move (or your language’s equivalent); if you cannot see the System Menu, it might be hidden somewhere, so you can type M (or whatever your language’s normal letter is for the “move this window” action from any application’s Alt+Spacebar System Menu). Either way, once it’s in move mode, you should be able to move the window around until you can see the OK button
      9a5c9577-11dd-42ab-81c1-6efb2986a824-image.png You see and click the OK button, but the window doesn’t go away, or comes back Not sure what could be causing this. My best guess would be that the F1 key on your keyboard is stuck (or some other application or malware is constantly sending the F1 keystroke command), so it is repeatedly opening the About dialog, even after you close it. There’s nothing Notepad++ can do about this, but a reboot might help, or trying a different keyboard on that computer. If F1 is really a problem that you cannot solve through keyboard or reboot, go to Settings > Shortcut Mapper (you can do that even when the About menu is showing), type F1 into the Filter, click on About Notepad++ in the grid, click the Clear button – this will remove the F1 shortcut from About Notepad++, so F1 will no longer launch that dialog. So then if you close it, even pressing F1 shouldn’t launch the dialog anymore.
      b67fd922-5af6-48ac-8c17-399711af3351-image.png

      But, in General, Notepad++ (v8.8.2 or any other version) only shows that dialog when you access it through the menu or through using F1, and can easily be closed using the OK button or typing the ESC key while the dialog is in focus.

      If nothing in this works, you will have to give us more information (maybe a screenshot of the dialog, in case I’ve misinterpreted what you meant by the “page with the license”)

    • ErickNetE

      Notepad for android

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

      @ErickNet
      Short answer is no.

      There are some posts on this forum over the years on the same subject, just do a search with the word android to see them. One of the later (relevant) ones is here.

      Terry

    • Glenn MG

      Add current file to Workspace?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      147 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.

    • T

      Why does my editor has this weird syntax highlighting?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      171 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
      167 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.

    • donhoD

      Notepad++ 8.9 RC is available

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      8
      4 Votes
      8 Posts
      887 Views
      donhoD

      FYI
      For the security reason, the https://download.notepad-plus-plus.org/ will be shutdown for some days.
      It might be back online next year.