Dreamweaver 中的 Textmate 风格片段?

发布于 2024-09-25 15:57:01 字数 265 浏览 0 评论 0原文

谁能告诉我 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ヤ经典坏疍 2024-10-02 15:57:01

这不是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文