简体   繁体   English

自动关闭html标签

[英]autoclose html tag on </ in notepad++

I've been using notepad++ for a while now and I've encountered a problem with auto close when it comes to different html tags. 我已经使用一段时间的notepad ++了,遇到不同的html标签时,我会遇到自动关闭的问题。

I'm wondering if it is possible to auto close the nearest tag when writing 我想知道写时是否可以自动关闭最近的标签

</

(like it does in dreamweaver) instead of the tag being auto closed when you write (就像在Dreamweaver中一样),而不是在编写时自动关闭标签

> (at the beginning tag for example <html(>)<-- it auto closes
 the tag here and it includes also comment tags which makes
it look like this:
<!----></!----->)

I've tried TextFX and I've not managed to fix it through that plugin. 我尝试了TextFX,但没有通过该插件对其进行修复。

Have you tried to do it via TextFX settings? 您是否尝试过通过TextFX设置来做到这一点? If you tick there the option + Autoclose XHTML/XML <Tag> , each time you close the bracket of an opening tag, it will create a closing tag. 如果在选项+ Autoclose XHTML/XML <Tag>打勾,则每次关闭开始标记的括号时,都会创建一个结束标记。 For example, if you type <div> , the moment you finish typing > , the editor will automatically create </div> right next to it. 例如,如果键入<div> ,则在完成键入>的那一刻,编辑器将自动在其旁边自动创建</div> Hope it helps. 希望能帮助到你。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM