我使用 notepad++ 有一段时间了,并决定尝试另一种文本编辑器...sublime text。我喜欢在该编辑器中,如果文档保存为 .html,您可以在编辑器中输入内容
html
然后你可以按下tab按钮,它会自动出现:
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
鉴于我不想为 sublime text 支付 70 美元,我想知道 notepad++ 是否有这样的功能。也许是我不熟悉的插件?有人知道这样的事情吗?让我知道!请!
最佳答案
尝试 Zen Coding for notepad++ ,来自他们的文档:
Zen Coding is an editor plugin for high-speed HTML, XML, XSL (or any other structured code format) coding and editing. The core of this plugin is a powerful abbreviation engine which allows you to expand expressions—similar to CSS selectors—into HTML code. For example:
div#page>div.logo+ul#navigation>li*5>a
...可以展开成:
<div id="page">
<div class="logo"></div>
<ul id="navigation">
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</div>
关于html - Notepad++ 如何输入 <html> 并打印整个布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15937608/