Notepad ++ 在打开的文档中用其他 (10) 行替换两行 [英] Notepad++ replace two lines with other (10) lines in open documents
问题描述
我想用 Notepad++ 中的其他行替换两行.
I want to replace two lines with other lines in Notepad++.
主要问题是我无法复制所有应该替换的行.如果我将所有行粘贴到字段中,则只有第一行插入到替换为:"输入字段中.似乎换行符没有正确复制.
The main problem is that I am not able to copy all the lines which should be replaced. Only the first line is inserted in the "Replace with:" input field if I paste all lines in the field. It seems that the line break is not correctly copied.
选择应插入到查找内容:"字段中的行(带换行符)非常容易,因为我可以在文档中选择它们,只需点击CTRL + H"即可.
Selecting the lines (with the line break) which should be inserted in the "Find what:" field is quite easy because I can select them in the document and simply hit "CTRL + H".
怎么办?请不要解决它如何与命令行工具一起工作.
What to do? Please no solutions how it could work with command line tools.
问候
推荐答案
这些建议都不能接受!TextFX 的 Ctrl+R 替换插件远远不够.
None of these suggestions are acceptable! TextFX's Ctrl+R replace plugin falls way short.
每个人想要用另一个多行文本块替换多行文本块的每个人都想要的是...
What EVERYONE wants, everyone that wants to perform a replacement of multiline blocks of text with another multiline block of text, is this...
2 个大文本框:
找到这个:
这是第一行
这就像两个
这是行树
替换为:
这是第一行
这是第 2 行
这是第 3 行
所有打开的文档"复选框
A checkbox for "All Open Documents"
和/或...
在所有类型的文件中查找-替换"选项
Option for "Find-Replace in all Files of Type"
然后是一个 GO 按钮........
Then a GO button............
在 Notepad++ 中创建这件事有多难?它是在 1998 年完成的,一个名为 Search-Replace 98 的免费软件实用程序.
How hard could that be to create in Notepad++? It was done way back in 1998, a freeware utility called Search-Replace 98.
更新:
numediaweb 推荐的插件正是我所需要的!向 numediaweb 致敬,为 phdesign 的 paul 鼓掌!
The plugin suggested by numediaweb DOES EXACTLY what I needed! Hats off to numediaweb for the tip and standing applause for paul at phdesign!
用于记事本++的ToolBucket多行搜索插件
ToolBucket multi-line search plugin for Notepad++
http://www.phdesign.com.au/programming/toolbucket-multi-line-search-plugin-for-notepad/
ToolBucket 包含以下功能:
ToolBucket contains the following features:
Multi-line search and replace dialog.
Change indentation dialog.
Generate GUID
Generate Lorem Ipsum
Compute MD5 Hash
Compute SHA1 Hash
Base 64 encode
Base 64 decode
下载
最新版本可在此处获得:https://github.com/phdesign/NppToolBucket/downloads
The latest version is available here: https://github.com/phdesign/NppToolBucket/downloads
这篇关于Notepad ++ 在打开的文档中用其他 (10) 行替换两行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!