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

      HOW Do You Add Keyboard Shortcuts

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

      @PeterJones said in HOW Do You Add Keyboard Shortcuts:

      Actually, anything in the Scintilla Commands tab of the Shortcut Mapper can have 0 or more shortcuts assigned. It’s not limited to only 2. And it’s not limited to only Copy/Cut/Paste. This is described in the user manual’s Preferences > Shorcut Mapper, specifically in the paragraph that starts with “In the Scintilla commands tab, you can actually assign more than one shortcut to a given Scintilla command”

      This might be confusing to @Michael-Neumann, because Cut, Copy and Paste are no longer Scintilla shortcuts; they moved to the Main menu tab, Edit category, as part of the changes that enhanced multiple selections and implemented VS Code-style line cut/copy/paste.

      Since the two sets of shortcuts, with X/C/V and with Insert/Delete, are so familiar and either would have been missed, special allowance was made to let those menu items have two distinct shortcuts. No other commands work that way.

    • Thorsten HeuerT

      Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      191 Views
      fml2F

      @h-jangra said in Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size:

      I have added this in NppVim plugin [. . .]I am not sure how to set text width in notepad++

      That’s interesting! I’d think that a NP++ plugin can only do things that are also possible in NP++ itself since the underlying engine is the same.

    • guy038G

      Macro problem

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

    • William EdwardsW

      Print colors?

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

      @Coises Perfect! Thank you for your assistance…

    • D. KirkpatrickD

      Editing the Shortcuts File

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

      @D-Kirkpatrick said in Editing the Shortcuts File:

      However with this latest version there doesn’t seem to be a way to do this?

      Nothing has changed regarding shortcuts.xml in the last many versions.

      I know there is a copy in %appdata% but that also had my changes.

      It depends on your settings, but the %AppData%\Notepad++\shortcuts.xml is the normal first place that Notepad++ will look.

      if that’s not working for you:

      confirm you follow the normal incantation for editing config files (ie, close all N++, open just one, edit file, save, exit and restart N++ to allow the change to take effect) if that doesn’t work, grab ?-menu’s Debug Info and share it with us share the actual XML snippet from the right shortcuts.xml file, so we can look to see if we can tell what’s wrong

      update: I just re-read your post, and noticed:

      When I added in the appropriate line to the XML file and saved it nothing happened and the pull down menu did not change.

      You have to exit Notepad++ after saving, then restart the application. Notepad++ doesn’t just re-parse shortcuts.xml when you save it, so the menu won’t change by just hitting save on the file.

    • George WarrinerG

      walkthrough that comments on each part of your Notepad++

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

      @George-Warriner,

      My best guess is that it was referring to this conversation

    • Markus LouwM

      I am a familiar user but now on this forum, and want to make a post, but cannot type in the message box "This forum uses a post queue system, since you are a new user (that is, someo"

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · i cant post new user nowhere to type message
      2
      0 Votes
      2 Posts
      55 Views
      PeterJonesP

      @Markus-Louw ,

      You mean this box?

      See that X on the upper right, right where Windows dialog boxes normally have their X close symbol? You click it to close the message so that you can type.

    • Nazar HotsaN

      Strange highlighting in PHP files

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

      @Nazar-Hotsa ,

      Did you ever run v8.8.9? If so, it’s likely what’s in this FAQ:
      https://community.notepad-plus-plus.org/topic/27306/faq-themes-in-v8-8-9

      Otherwise, what theme are you using, what version are you on now (sharing ?-menu’s Debug Info would help), what earlier versions have you run recently, and what other changes did you make around the time that highlighting changed?

    • K

      how to make tab bar appear vertically in notepad ++

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

      @jterrain said in how to make tab bar appear vertically in notepad ++:

      but implementation of actual vertical tabs would work better.

      We have a Feature Request FAQ:
      https://community.notepad-plus-plus.org/topic/15741/faq-feature-request-or-bug-report

    • Pierre de la VerreP

      No solution for using as Preview Handler?

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

      @Pierre-de-la-Verre said in No solution for using as Preview Handler?:

      I looked around and it seems that there is no (common) way to activate / to configure the “Preview Pane” in Windows Explorer on “Win Server 2019” to display common files like logs, txts and so on.

      Notepad++ doesn’t have a preview pane natively. Are you using one or more plugins? If so, which plugin(s)?

      Or are you saying that you would like to tell Windows OS to use Notepad++ as the preview tool for those kinds of files? My guess is that would require that Notepad++ add hooks to handle whatever special message Windows sends to request generating the preview. Yeah, I found this 2019 feature request that requested adding such a feature. You could go upvote that request… Also, there’s a discussion from 2021 about the possibility of this feature, as well.

      (On Github I found a fork which offers this, but I would like to prefer a solution with / within the “official version of NotePad++”)

      I couldn’t find that fork easily. If you pointed a link to that fork in the official feature request issue, it might give a volunteer the context and information needed to be able to try to incorporate it into Notepad++.

    • Omar AO

      find and replace Gemini copy/paste coding data-path-to-node

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

      @Omar-A ,

      Search has a “regular expression” mode which will be able to search for anything matching a pattern. Since I assume you want to also delete the matching </span> to go with it, then I believe a regex like the following will work:
      FIND = <span data-path-to-node[^>]*>(.*?)</span>
      REPLACE = $1
      SEARCH MODE = Regular Expression

      That worked on the first three spans in your example (and would’ve worked on the fourth if the final /span> wasn’t missing the <)

    • conky77C

      show the current zoom

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      30
      1 Votes
      30 Posts
      21k 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
      115 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
    • Ertan KüçükogluE

      Pascal multi line string highlight

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      726 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
      108 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…

    • Chuck MooreC

      How do I change font?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      16
      0 Votes
      16 Posts
      180k Views
      PeterJonesP

      @Cam-K said in How do I change font?:

      Noticed on newer versions of N++ that the “Enable global font” option is gone

      It’s not gone, just at the bottom of the list, because it’s not what most people should be using. See the global override dialog and the user manual for more on why you shouldn’t use it.

    • 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
      192 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
      72k 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.

    • donhoD

      Notepad++ release 8.9

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      26
      4 Votes
      26 Posts
      7k Views
      A

      @donho I updated from 8.8.8 and after the first launch of Notepad++ the error “Load lang.xml failed!” occured once (exe-installer on latest Windows 11).