notepad++ Emmet Installation Method tutorial

Source: Internet
Author: User

notepad++ Emmet after installation unknown exception prompt plugin Invalid Python script Plugin did not accept the script. The following is a record of the resolutions and procedures that are documented here.


Emmet's predecessor is the famous Zen Coding,web front-end development, the plugin must not be unfamiliar. It uses the syntax of the faux CSS selector to generate code, greatly improving the speed of HTML/CSS code writing.


For example, notepad++ quickly write HTML code-the initialization of an HTML document needs to include some fixed tags, such as


Emmet requires support for Python Script, so these two plugins must be installed for use at the same time. There are two ways to install the method according to the official tutorial.


The first type: Install with plugin manager, open plugin-plugin manager-Show plugin to find Emmet plug-in installation


The second type: Manual method.


Install the Python Script plugin first (python script:a python Scripting plugin for notepad++), which the official tutorial says can be installed in the Plugins manager. Download the Emmet plugin, unzip to the \program Files\notepad++\plugins installation directory, start notepad++ to see the Emmet plugin. Plugin Address: HTTPS://GITHUB.COM/EMMETIO/NPP


The official recommendation is to set the shortcut key abbreviation to tab.


However, the cows found that the above method was not feasible during installation because the plug-in did not work at all. There are unknown exception and Python script plugin did not accept the script error prompt, the environment is Win7 x64 bit system, find a solution is Python script plugin problem, download Python Sc ript Plugin reinstallation resolves this issue.


Plug-in Introduction and installation address: http://npppythonscript.sourceforge.net/download.shtml


Uninstall the original Python script plugin before installing again.

Uninstalling the notepad++ plugin

After downloading the file is pythonscript_1.0.8.0.msi right click Install, note here to install the notepad++ program root directory, he will automatically install to \notepad++\plugins\pythonscript\ below. After installation, restart notepad++, test OK. Comprehensive degree Niang and other people in Google reflect the situation, the problem is mainly in the Win7 and WIN8 64-bit systems.

In addition, there is a problem Emmet plug-in appears to be installed by default, shortcut keys are not tab keys, you need to set additional. Here's how to set it up:

After installing Emmet, it is strongly recommended that you change the keyboard shortcut for Expand abbreviation to the TAB key.
Open notepad++settings > Shortcut Mapper ... dialog box, switch to plugin commands, check the Expand abbreviation item, and modify its shortcut key to tab.

notepad++ Plugin shortcut key settings

!
<!doctype html>
<meta charset= "UTF-8" >
<title>Document</title>
<body>

</body>


Html:4s
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >
<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8" >
<title>Document</title>
<body>

</body>


Html:xs

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8" >
<title>Document</title>
<body>

</body>

#content. aticle.posts
<div id= "Content" class= "aticle posts" ></div>


Ul#ccc.ddd
<ul id= "CCC" class= "DDD" >
</ul>

Div.aaa>ul>li
<div class= "AAA" >
<ul>
<li></li>
</ul>
</div>

Div>ul>li^^span
<div>
<ul>
<li></li>
</ul>
</div>
<span></span>


Div>ul>li^^div.clear
<div>
<ul>
<li></li>
</ul>
</div>
<div class= "Clear" ></div>

Div>ul>li*6
<div>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>

(Div>dl> (DT+DL)) +footer>p
<div>
<dl>
<dt></dt>
<dl></dl>
<dt></dt>
<dl></dl>
<dt></dt>
<dl></dl>
</dl>
</div>
<footer>
<p></p>
</footer>

Div.banner>ul>li*2> (DT+DL) +footer^^span

<div class= "banner" >
<ul>
<li>
<dt></dt>
<dl></dl>
<dt></dt>
<dl></dl>
<dt></dt>
<dl></dl>
<footer></footer>
</li>
<li>
<dt></dt>
<dl></dl>
<dt></dt>
<dl></dl>
<dt></dt>
<dl></dl>
<footer></footer>
</li>
</ul>
<span></span>
</div>

A
<a href= "" ></a>

a>{I am the link title}
<a href= "" > I am the link title </a>

Link
<link rel= "stylesheet" href= "" >


Ul>li.item$*5
<ul>
<li class= "Item1" ></li>
<li class= "Item2" ></li>
<li class= "Item3" ></li>
<li class= "Item4" ></li>
<li class= "ITEM5" ></li>
</ul>
$ means one digit, and only one appears, starting with 1. If more than one appears, start at 0. If I want to generate a three-digit ordinal number, then write three $:

Ul>li.item$$*5

<ul>
<li class= "ITEM01" ></li>
<li class= "ITEM02" ></li>
<li class= "Item03" ></li>
<li class= "Item04" ></li>
<li class= "Item05" ></li>
</ul>

(header>ul.nav>li*5) +article+footer
<ul class= "NAV" >
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<article></article>
<footer></footer>

notepad++ Emmet Installation Method tutorial

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.