Notepad++默认对中文换行支持不大好,中英文混排时尤为明显,搜到解决方案一则。
https://sourceforge.net/p/not...
Q: Hi all,It seems that NPP treats all Chinese characters as a single word, even
if it is a sentence. When Chinese and English are edited in the same
file, unexpected wraps occur and make the text right ragged. Sometimes
the ragged space is so big when the following Chinese sentence is long
and taken by NPP as a single word.Does any one how can I make NPP to ragged Chinese and English
correctly at the same time?Thanks.
Richard
A: Hi, As far as I know, you cannot enable SC_WRAP_CHAR through the
N++ user interface. However, it is possible to set this option via the
NppExec plugin.
- Install NppExec (through the Plugin Manager is easiest)
- In the menu go to, Plugins->NppExec->Execute...
- Paste this text
sci_sendmsg SCI_SETWRAPMODE SC_WRAP_CHAR npp_console 0
- Click save and give it a name Go to Plugins->NppExec->Advanced Options...
- In the top right you can select a script to run at startup, select the script you just saved
This should set this option each time you start up N++
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。