javascript - Notepad++ 只在替换中粘贴复制代码的第一行?

标签 javascript html css notepad++

我经常使用 Notepad++ 的替换功能来替换多个文件中的代码。但是最近我不知道每当我在 Notepad++ 的替换文本框中粘贴多行代码时我做错了什么,只粘贴了第一行代码。所以我必须将所有代码都写在一行中,这会花费很多时间并且代码变得很麻烦。这对我来说非常困难,我无法在任何地方找到任何解决方案。请帮忙!

  (adsbygoogle = window.adsbygoogle || []).push({



google_ad_client: "ca-pub-9493617747666534",



enable_page_level_ads: true

});

最佳答案

Notepad++ 本身不支持多行查找和替换操作。

引用: find multiple lines in notepad++

但是,ToolBucket 插件为 Notepad++ 添加了多行查找和替换支持:http://sumtips.com/2012/05/multiline-search-and-replace-notepad.html

安装:

Download and extract zip file, and copy the NppToolBucket.dll file to your Notepad++\plugins folder.

You can also get this plugin from within the text-editor itself by going to Plugin Manager from Plugins Plugin Manager > Show Plugin Manager. Under the Available tab, find and select ToolBucket, and click Install.

关于javascript - Notepad++ 只在替换中粘贴复制代码的第一行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45428468/

相关文章:

javascript - 获取元素源焦点 Angular

html - 如何操纵其他网站数据?

css - 我不明白如何在 div 中动态调整 ul 的大小

html - 如何在悬停时隐藏div?

html - 添加图像鼠标悬停后出现神秘的滚动问题

javascript - 维护: Assigning numbers to constants

javascript - 通过 rootScope 从遗留代码广播到 Angular

javascript - 如何处理 React 的 onChange 事件中的小数值输入?

html - 悬停时无法显示按钮

php - 尝试使用 html 表单和 php 更新 mysql