jEdit:在 SuperAbbrevs 中使用 SuperAbbrevs
我刚刚发现了非常有用的 jEdit 插件 SuperAbbrevs 。我编写了一些缩写,效果很好。但我喜欢做以下事情。
缩写:
${1:}p =
img =
因此,当我输入:
imgp
时,它会给我一个空的 并将光标放在中间。然后,我在
p
标记中间输入 img
并按 TAB
激活下一个 SuperAbbrev(触发 img 标签)。然而,它不会将其转换为我的全文,而是仅转换到缩写的末尾,我最终得到:
当我手动返回并在 img
文本后点击 TAB
时,它会起作用,但我需要首先保留 p
标记,这样就违背了缩写的目的。有人有什么想法吗?
I just discovered the very useful SuperAbbrevs plugin for jEdit. I've programmed a few abbreviations and it works great. But I like to do the following.
Abbreviations:
p = <p>${1:}</p>
img = <img src="${1:}" alt="${2:}" />
So when I type:
p
it will give me an empty <p></p>
and place the cursor in the middle. I then type img
in the middle of the p
tag and hit TAB
to active the next SuperAbbrev (triggering the img
tag). However, instead of also converting this into my full text, it will just just to the end of the abbreviation and I end up with:<p>img</p>
When I manually go back and hit TAB
after the img
text it WILL work, but I need to leave the p
tag first and that defeats the purpose of the abbreviations. Anybody any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到解决方案了!在模板中设置:
$end
这样,光标会跳到中心,缩写词结束,从而可以立即输入其他缩写词。
Found the solution! Set this in the template:
<p>$end</p>
That way, the cursor jumps to the center and the abbreviation ends, allowing other abbreviations to be entered right away.