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

      Macro problem

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      158 Views
      mpheathM

      @guy038

      https://www.scintilla.org/ScintillaDoc.html#SCI_COPY

      copying data to the clipboard

      Is document to the clipboard.

      https://www.scintilla.org/ScintillaDoc.html#SCI_PASTE

      pasting from the clipboard into the document

      Is clipboard to the document.

      Both functions relate to the document in the editor. The copy function will be good for the task though paste will not work with the search window.

      Instead of SCI_PASTE, could use the Run command to run an executable to insert the clipboard text into the search window.

      AutoIt3 script automate_columns++_search.au3 :

      ; Wait up to 3 seconds for the window. $hSearch = WinWait('Search in indicated region', '', 3) If $hSearch Then $sClip = ClipGet() ; get clipboard text ControlSetText($hSearch, '', 'Edit1', $sClip) ; set combo edit ControlClick($hSearch, '', 'Button7') ; click regex button ControlClick($hSearch, '', 'Button9') ; click count button $sCount = ControlGetText($hSearch, '', 'Static3') ; read label ClipPut($sCount) ; set clipboard text EndIf

      Adjust the title if the window text is localized.

      Compile to executable and then add to Run as a command. Get the command id with NppUISpy and insert into the shortcuts.xml file.

    • Robert Or Janet DiebelR

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

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      178 Views
      Robert Or Janet DiebelR

      @PeterJones Thanx, much appreciated.

    • William EdwardsW

      Print colors?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      1 Votes
      3 Posts
      94 Views
      William EdwardsW

      @Coises Perfect! Thank you for your assistance…

    • Craig W.C

      Turn Off Paragraph Highlighting

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      96 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
      422 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.

    • Kaptain BiwouakK

      Notepad++ 8.8.8: 2 issues detected

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      675 Views
      deleeleeD

      @xomx said in Notepad++ 8.8.8: 2 issues detected:

      or the 3rd option - as I said, create new MenuIcons plugin GitHub issue and its author most likely fixes it and publishes a new compatible version

      Oh yes, of course, sorry. The third option is to create a GitHub issue which I’ve done. Here’s the link if anyone else should mention experiencing similar behaviour:

      https://github.com/francostellari/NppPlugins/issues/73

    • S

      Renumber lines?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      182 Views
      S

      @PeterJones

      Thank you.

    • 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
      58 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
      87 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
      67 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
      110 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
      70 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
      107 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
      114 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
      93 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
      119 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
      151 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.8.8 release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      25
      1 Votes
      25 Posts
      10k Views
      DustyMarieD

      @Andrea-Gaviraghi More results from allowing updates on MSI package. The 8.8.8 MSI pulls the update from Notepad++ and it then installs the 8.8.9 executable. So again, the computer shows 2 installs, when only the newest is really installed. This process should be a lot cleaner…