Home>Article>Development Tools> sublime Text 3 emmet method to customize HTML template

sublime Text 3 emmet method to customize HTML template

藏色散人
藏色散人 forward
2019-12-02 14:37:37 4431browse

The following tutorial column ofsublime text 3will introduce to you how emmet customizes HTML templates. I hope it will be helpful to friends in need!

sublime Text 3 emmet method to customize HTML template

1. Download Emmet

https://github.com/sergeche/emmet-sublime

2. Open the sublime Package package directory. Windows is usually under C:\Users\userName\AppData\Roaming\Sublime Text 3\Packages\. Create the Emmet directory in the Package directory, and unzip and copy the downloaded file to this directory

3. HTML template content can be configured in Emmet/emmet/snippets.json.

a) Find html .abbreviations.doc can define the content stored in the header and body tags in HTML.

b) Variables can be applied to html.abbreviations.doc strings. Variables are defined in variables. Use ${ in strings. Just enter the variable name}.

4. After defining, restart sublime, create an HTML file, enter! or html:5, and press the tab key.

The above is the detailed content of sublime Text 3 emmet method to customize HTML template. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete