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
    • Ronald BesdanskyR

      Line number issues

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · line number
      6
      0 Votes
      6 Posts
      57 Views
      Ronald BesdanskyR

      @Terry-R Thank you very much Terry. I’ll try all that.

    • arnaud deretteA

      Terminal window in a N++ tab

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      241 Views
      PeterJonesP

      @arnaud-derette said in Terminal window in a N++ tab:

      i think i get it : It does not handle correctly 4K screen.

      That does not surprise me. Notepad++ is still not great for high-DPI environments, and it’s been taking a long time to finish some of the last-remaining high-DPI issues. And if the main app, with lots of contributors, still has issues, then it should come as no surprise that the plugins, which usually only have one developer (if they remain interested), whose skillset usually focuses on the feature that their plugin implements, rather than on the generics of all the edge cases of modern win32 coding. (At least, I know that’s true for me on my plugin(s).)

      I don’t have a High-DPI environment, so I don’t know and can’t test for you, but maybe the NppExec plugin handles high-DPI better than NppConsole does (whether the original, or the intermediate fork)

    • William FieldsW

      Curse of the Curly Quotes

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

      @William-Fields said in Curse of the Curly Quotes:

      When pasting code into NP++ from another source, no matter what I do, if the source has curly quotes, the pasted content has curly quotes.

      Right. That’s because the curly quote characters have different codepoints from ASCII quotemarks.

      It’s doing the right thing.

      If you want to convert, then use a regular expression:
      FIND = [“”]
      REPLACE = "
      SEARCH MODE = Regular Expression
      REPLACE ALL

      change all curly quotes to straight quotes when opening documents or pasting content

      There’s no such command or option in Notepad++, because that would be Notepad++ changing characters from one codepoint to another without user interaction, which is the antithesis of text editing

      https://community.notepad-plus-plus.org/post/102348

      The Direct Write ligature-effects from the post you showed is just the fonts changing the appearance of characters based on font ligature rules, but the underlying characters that Notepad++ is presenting are the exact same characters as found on disk. On the other hand, the curly quotes that you are copying and pasting are different characters from the ASCII quote.

    • pbarneyP

      Virtual Key Codes Update

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      1 Votes
      2 Posts
      34 Views
      PeterJonesP

      @pbarney said in Virtual Key Codes Update:

      It mentions a “complete list” which can be found on the repo at keys.h , but that file is far from complete.

      Good point. That phraseology was left over from the pre-2017 wiki-based manual, which was known to be out-of-date and innacurate, but it was a monumental task to update that, and some things weren’t always reworded in the best manner.

      The modern User Manual does, however, also point to a few posts here, which in turn lead to our FAQ: FAQ: List of Notepad++ key combinations, available for shortcuts. I should remove the word “complete” from the UM, and point directly to the FAQ. However, you might want to double check your list against the FAQ, to let us know if the FAQ is missing any.

      Please note that many in your table, like the VK_GAMEPAD*, are technically “reserved” in the official list, and are dependent on Windows keyboard settings and localization

      A more-complete list is found in namedKeyArray[] in shortcut.cpp – in that, that is the list that modern Notepad++ now uses when generating the list of available keys in Shortcuts (and it uses win32 API calls to ensure that for reserved and oem-specific keycodes, it provides the right name based on your current Windows keyboard settings) – so it’s a complete list of what Notepad++ actually allows via the GUI.

      update: https://npp-user-manual.org/docs/config-files/#virtual-key-number has been updated to stop calling keys.h “complete”; it now links to a section of the codebase in shortcut.cpp that lists all the keycodes available to the Shortcut Mapper GUI, and links to the official MS documentation. Also, the text links to the FAQ rather than the individual posts for finding keycodes. And it explains how to use calc.exe to convert the hex listed in the source code or the MS docs into decimal for use in the key="###" attributes in shortcuts.xml.