简体   繁体   English

gedit 中的自动关闭标签——一个人能做梦吗?

[英]Auto closing tags in gedit -- can a man dream?

Top of the morning to y'all.祝大家早安。

I recently switched to Debian and I'm finding gedit 3 to be a worthy replacement for notepad++.我最近切换到 Debian 并且我发现 gedit 3 是记事本 ++ 的值得替代品。

I have one complaint though: I can't find a plugin which will close tags for me.不过我有一个抱怨:我找不到可以为我关闭标签的插件。

Example:例子:

When I type the following当我输入以下内容时

<p>

As soon as I type the ending > , I want </p> to be inserted.一旦我输入结尾> ,我想插入</p>

<p>_</p>

The cursor should remain between the two tags, where I placed the _ character. cursor 应该保留在两个标签之间,我放置了_字符。

Anything that'll do this for me?有什么可以为我做这件事的吗?

PS: Please resist the urge of telling me to man up and just use vim/emacs:( PS:请克制住告诉我做人的冲动,只使用 vim/emacs :(

maybe try Geany?也许试试 Geany?

Please look at the Geany snippets video .请查看Geany 片段视频

The gedit plugin "intelligent text completion" inserts the appropriate closing tag at the insertion of "</" just like Macromedia Dreamweaver. gedit 插件“智能文本完成”在“</”的插入处插入适当的结束标记,就像 Macromedia Dreamweaver 一样。 This functionality comes close to what you describe.此功能接近您所描述的。

(Video) (视频)

It might be beyond your dreams, but there is Zen coding out there giving you an intelligent autocomleting syntax .这可能超出您的梦想,但Zen 编码可以为您提供智能的自动完成语法 There are two ports for gedit from fmarcia and mikecrittenden .来自fmarciamikecrittenden的 gedit 有两个端口。

IDE 建议 - 自动关闭标签<!--</div--><div id="text_translate"><p> 我一直在使用<strong>Dreamweaver CS3</strong> ,现在我的大部分编码都是 PHP(经常使用 CodeIgniter),我真的需要找到一个新的 IDE。</p><p> 我已经尝试过<strong>PHPDesigner</strong>和<strong>Aptana Studio 3</strong> ,并且对两者都很满意,直到我开始在 HTML 中编码并看到它们如何在打开标签后立即自动关闭标签,将 cursor 放在它们之间。 在围绕 web 进行了大量搜索之后,这似乎是常态,但我已经非常习惯 Dreamweavers 风格,当我键入&lt;/并将我的 cursor 放在生成的末尾时自动关闭最近打开的标签结束标记。</p><p> 是否有任何 IDE 可以在&lt;/上自动关闭其标签,还是我要求太多?</p></div> - IDE suggestion - auto closes tags on </

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 HTML记事本中的自动完成关闭标记++ - Auto Completion Closing tags in html notepad++ Sublime Text 3 中的自动关闭 HTML 标签 - Auto closing HTML tags in Sublime Text 3 CodeSandbox 编辑器已停止自动完成相应的 JSX 结束标记? - CodeSandbox editor has stopped auto completing the corresponding JSX closing tags? 如何禁用VSCode中的自动关闭JSX标签? - How do you disable auto-closing JSX tags in VSCode? 反引号,打字稿,Visual Studio代码中的自动完成/关闭标签 - auto complete / closing tags inside backtick, typescript, visual studio code 我怎样才能让pycharm不自动插入结束的文档字符串? - How can I get pycharm to NOT auto-insert a closing docstring? Eclipse字符串自动关闭 - Eclipse strings auto closing IDE 建议 - 自动关闭标签<!--</div--><div id="text_translate"><p> 我一直在使用<strong>Dreamweaver CS3</strong> ,现在我的大部分编码都是 PHP(经常使用 CodeIgniter),我真的需要找到一个新的 IDE。</p><p> 我已经尝试过<strong>PHPDesigner</strong>和<strong>Aptana Studio 3</strong> ,并且对两者都很满意,直到我开始在 HTML 中编码并看到它们如何在打开标签后立即自动关闭标签,将 cursor 放在它们之间。 在围绕 web 进行了大量搜索之后,这似乎是常态,但我已经非常习惯 Dreamweavers 风格,当我键入&lt;/并将我的 cursor 放在生成的末尾时自动关闭最近打开的标签结束标记。</p><p> 是否有任何 IDE 可以在&lt;/上自动关闭其标签,还是我要求太多?</p></div> - IDE suggestion - auto closes tags on </ 在 VS Code 中禁用 HTML 注释的自动关闭 - Disable auto closing for HTML comments in VS Code 如何实现自动括弧关闭? - How to implement auto bracket-closing?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM