notepad++ select hyphenated text

前端 未结 7 1307
梦如初夏
梦如初夏 2021-01-02 02:46

I could\'nt find a solution to a problem that has been hindering the use of notepad++.

When you double click text to highlight that text and others like it,

相关标签:
7条回答
  • 2021-01-02 03:16

    Notepad++ rely on Scintilla for word selection. As caoanan noticed in his answer, Scintilla can be configured with the SCI_SETWORDCHARS variable. You can set this variable in Notepad++ with a simple NppExec script:

    1. Install NppExec
      • Menu Plugins -> plugin Manager -> Show Plugin Manager
      • locate NppExec, check the box and hit Install
    2. Create the script

      • Menu Plugins -> NppExec -> Execute ...
      • write this code (you can add other characters, like .$#@ at the end of the list):

        NPP_CONSOLE 0
        sci_sendmsg SCI_SETWORDCHARS 0 "CDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"
        
      • hit Save...
      • You can now execute it by pressing OK
    3. (optionnal) Execute when Notepad++ starts
      • Menu Plugins -> NppExec -> Advanced Options...
      • Choose your script in the Execute this script when Notepad++ starts drop down
    0 讨论(0)
提交回复
热议问题