Dreamweaver 中的 Textmate 风格片段?
谁能告诉我 Dreamweaver 是否支持与 Textmate、Coda 和电子文本编辑器相同风格的代码片段/包?
也就是说,以文本字符串的形式创建一个“触发器”,后跟(通常)Tab 键。
我知道可以使用“Ctrl”键后跟字母或数字来设置触发器。但这种方法非常有限,而且许多快捷键已经被使用。
我想要的是能够输入例如“pagestart”+ tab,它会吐出我的基本页面结构片段。
如果能的话那就太好了。但我有一种感觉,它不会
感谢。
Can anyone tell if Dreamweaver supports Code snippets/bundles in the same style as Textmate, Coda, and E-Text Editor?
That is, creating a 'trigger' in the form of a text string, followed by (usually) the Tab key.
I know it is possible to set up triggers using the 'Ctrl' key, followed by a letter or number.But this method is quite limited, plus many of these shortcuts are already being used.
What i want is to be able to type in for example 'pagestart' + tab and it spits out my basic page structure snippet.
It would be great if it did. But I have a feeling it doens't
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是 Dreamweaver 的内置功能,但其内置功能之一(可扩展性)确实允许执行类似的操作。有一个基于 Zen Coding 的扩展,可以帮助您实现这一目标(请参阅 < a href="http://code.google.com/p/zen-coding/downloads/list" rel="nofollow">Dreamweaver 扩展的下载页面)。我不知道修改此扩展的代码输出有多容易,但如果您窥探它的代码,我确信您可以相对轻松地添加自己的代码块和被替换的令牌。
This isn't a built in feature of Dreamweaver, but one of its built in features, extensibility, does allow for something similar to be done. There is an extension based on Zen Coding that gets you part way there (see the Downloads page for the Dreamweaver extension). I don't know how easy it is to modify the code output for this extension, but if you snoop around in it's code I'm sure you could relatively easily add your own code chunks and tokens that get replaced.