0

我使用带有 Zen Coding 的 notepad++。

我想添加一个新的缩写

script:jquery17

执行以下操作

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
4

1 回答 1

2

如果您是 Zen Coding 的 JS 版本(从https://github.com/sergeche/zen-coding/downloadshttp://code.google.com/p/zen-coding/downloads/list下载),您需要打开Zen Coding.js位于下载存档的 NppScripting/includes 目录中的文件。它上面有一个zen_settings变量,它描述了所有可用的缩写和片段,并添加您自己的。

如果您使用的是 Python 版本(从http://sourceforge.net/projects/npppythonscript/files/下载),您必须在其中找到zen_settings.py文件。

有关如何添加新元素和片段的更多信息,请阅读本教程:http ://coding.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/

于 2012-06-08T10:35:59.197 回答