如何多行“替换文件..."在记事本++中 [英] How to multi-line "Replace in files..." in Notepad++

查看:192
本文介绍了如何多行“替换文件..."在记事本++中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果免费源代码编辑器 Notepad ++ 具有查找文件"功能...",即没有在编辑器中打开文件,它还具有替换文件..."功能吗?

If the free source code editor Notepad++ has the feature "Find in files...", that is without the files being opened in the editor, does it also have the feature "Replace in files..."?

Notepad ++基于编辑组件 Scintilla -SourceForge对此请求的响应此功能:无需将此包含在SciTE中,因为您可以使用参数"对话框将此命令添加到工具"菜单中.那么可以在记事本++中进行文件中的多行替换吗?

Notepad++ is based on the editing component Scintilla - for which at SourceForge there is a response to a request for this feature: "No need for this to be included in SciTE as you can add this command to the Tools menu using the Parameters dialog." So is it possible to do multi-line replace in files in Notepad++?

推荐答案

在记事本++中轻松进行多行替换.您必须使用\n来表示字符串中的换行符,并且它同时适用于搜索和替换字符串.您必须确保在搜索窗口的左下角选择扩展"搜索模式.

It's easy to do multiline replace in Notepad++. You have to use \n to represent the newline in your string, and it works for both search and replace strings. You have to make sure to select "Extended" search mode in the bottom left corner of the search window.

我在这里找到了一篇很好的文章,介绍了这些功能: http://markantoniou.blogspot.com/2008/06/notepad-how-to-use-regular-expressions.html

I found a good article describing the features here: http://markantoniou.blogspot.com/2008/06/notepad-how-to-use-regular-expressions.html

这篇关于如何多行“替换文件..."在记事本++中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆