如何充分利用记事本中的宏?
我真正想要的是类似于 Photoshop 的自动化功能,您可以对其进行设置,以便它打开文件,执行宏,然后保存文件。
我希望这可以在 Notepad++ 中完成,但是 Dreamweaver 或任何其他 IDE 是否有类似的功能?
我有几百个 HTML 文件,我想对它们进行相当重复的修改,并且确实认为有比手动修改更简单的方法。
非常感谢任何帮助!
What I really want is something similar to Photoshop's automation feature, where you can set it up so it will open a file, preform a macro, and then save the file.
I would prefer if this could be done in Notepad++, but does Dreamweaver or any other IDE have something similar?
I have a couple hundred HTML files that I want to make fairly repetitive modifications to, and really think there is an easier way than doing it manually.
Any help greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您愿意安装 Cygwin 工具,则安装
sed
或awk
工具可能正好适合这种重复编辑。我使用 sed 为尚未具有显式许可证的文件添加许可证、重命名变量等。不过,这些工具的掌握并不多——您编写的内容很少小型sed
或awk
程序来完成这项工作:If you're open to installing the Cygwin tools then the
sed
orawk
tools might be appropriate for exactly this kind of repetitive editing. I've usedsed
to prepend a license to files that didn't already have an explicit license, rename variables, etc. There isn't much hand-holding with these tools though -- you write little tinysed
orawk
programs to do the job: