{"id":1087,"date":"2017-03-23T00:00:15","date_gmt":"2017-03-22T15:00:15","guid":{"rendered":"https:\/\/hi3103.net\/notes\/?p=1087"},"modified":"2022-08-21T11:31:53","modified_gmt":"2022-08-21T02:31:53","slug":"sublimetext%e3%81%abemmet%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/hi3103.net\/notes\/dev\/1087","title":{"rendered":"Sublime Text 3 \u306b Emmet \u3092\u5c0e\u5165\u3059\u308b"},"content":{"rendered":"<h3>Emmet\u3068\u306f<\/h3>\n<blockquote>\n<p>Emmet \u2014 the essential toolkit for web-developers<br \/>\n<a href=\"https:\/\/emmet.io\/\">https:\/\/emmet.io\/<\/a><\/p>\n<\/blockquote>\n<ul>\n<li>HTML\u3068CSS\u306e\u8a18\u8ff0\u3092\u52b9\u7387\u5316\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u7528\u306e\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<li>2017\u5e74\u304b\u3089\u5229\u7528\u3057\u3066\u3044\u308b\u304c\u3001\u3044\u3064\u3060\u304b\u4ed5\u69d8\u304c\u5909\u308f\u308a\u72ec\u81ea\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u767b\u9332\u306a\u3069\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u305f\uff08\u4e0d\u4fbf\uff09<\/li>\n<li>\u73fe\u5728\u306fHTML\u3092\u5c55\u958b\u3059\u308b\u7528\u9014\u3067\u306e\u307f\u4f7f\u3063\u3066\u3044\u308b<\/li>\n<\/ul>\n<h3>\u624b\u9806<\/h3>\n<ol>\n<li>Package Controll\u304b\u3089\u300cEmmet\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li><code>Ctrl<\/code> + <code>E<\/code> \u3067\u5c55\u958b\u3067\u304d\u308b\u3088\u3046\u306b Key Binding \u3092\u8a2d\u5b9a<\/li>\n<li>\u5c55\u958b\u6642\u306b\u30b3\u30e1\u30f3\u30c8\u304c\u633f\u5165\u3055\u308c\u308b\u3088\u3046\u306b Emmet \u306eSetting &#8211; User \u3092\u8a2d\u5b9a<\/li>\n<\/ol>\n<p><!--more--><\/p>\n<h4>Preferences &gt; Key Bindings<\/h4>\n<pre><code class=\"language-javascript\">\/\/[Emmet]Ctrl+E\u3067\u5c55\u958b\n{ \"keys\": [\"ctrl+e\"], \"command\": \"emmet_expand_abbreviation\" },<\/code><\/pre>\n<h4>Preferences &gt; Package Settings &gt; Emmet &gt; Settings -User<\/h4>\n<pre><code class=\"language-javascript\">{\n    \"comment\": true,\/\/\u5c55\u958b\u6642\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u6709\u52b9\u5316\n    \"comment_template\": \"&lt;!-- \/[#ID][.CLASS] --&gt;\",\/\/\u30b3\u30e1\u30f3\u30c8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8a2d\u5b9a\n}<\/code><\/pre>\n<h5>\u5c55\u958b\u6642\u306e\u30b3\u30e1\u30f3\u30c8\u4f8b<\/h5>\n<ul>\n<li>\n<p><code>#hoge<\/code> \u3092\u5c55\u958b<\/p>\n<pre><code>&lt;div id=\"hoge\"&gt;&lt;\/div&gt;&lt;!-- \/#hoge --&gt;<\/code><\/pre>\n<\/li>\n<li>\n<p><code>.piyo<\/code> \u3092\u5c55\u958b<\/p>\n<pre><code>&lt;div class=\"piyo\"&gt;&lt;\/div&gt;&lt;!-- \/.piyo --&gt;<\/code><\/pre>\n<\/li>\n<li>\n<p><code>#hoge.piyo<\/code> \u3092\u5c55\u958b<\/p>\n<pre><code>&lt;div id=\"hoge\" class=\"piyo\"&gt;&lt;\/div&gt;&lt;!-- \/#hoge.piyo --&gt;<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>\u4f7f\u3044\u65b9<\/h3>\n<ol>\n<li>\u8a18\u8ff0\u30eb\u30fc\u30eb\u306b\u306e\u3063\u3068\u3063\u30661\u884c\u3067\u66f8\u304f<\/li>\n<li>\u884c\u672b\u306b\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u308b<\/li>\n<li>\u8a2d\u5b9a\u3057\u305f\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc <code>Ctrl<\/code> + <code>E<\/code> \u3092\u62bc\u4e0b\u3057\u3066\u5c55\u958b<\/li>\n<\/ol>\n<h4>\u4e3b\u306a\u8a18\u8ff0\u30eb\u30fc\u30eb<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u66f8\u304d\u65b9<\/th>\n<th>\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>id\u3092\u4ed8\u4e0e<\/td>\n<td><code>#<\/code><\/td>\n<td><code>#hoge<\/code><\/td>\n<\/tr>\n<tr>\n<td>class\u3092\u4ed8\u4e0e<\/td>\n<td><code>.<\/code><\/td>\n<td><code>.piyo<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u5165\u308c\u5b50<\/td>\n<td><code>&gt;<\/code><\/td>\n<td><code>ul&gt;li<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u4e26\u3079\u308b<\/td>\n<td><code>+<\/code><\/td>\n<td><code>h1+p<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u304f\u304f\u308b<\/td>\n<td><code>( )<\/code><\/td>\n<td><code>(ul&gt;li)+(ul+li)<\/code><\/td>\n<\/tr>\n<tr>\n<td>n\u500b\u7e70\u308a\u8fd4\u3059<\/td>\n<td><code>*n<\/code><\/td>\n<td><code>li*4<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u30bf\u30b0\u306e\u4e2d\u8eab<\/td>\n<td><code>{ }<\/code><\/td>\n<td><code>h1{\u898b\u51fa\u3057}<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u30bf\u30b0\u306e\u5c5e\u6027<\/td>\n<td><code>[ ]<\/code><\/td>\n<td><code>a[href=index.html target=_blank]<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Emmet\u3068\u306f Emmet \u2014 the essential toolkit for web-developers https:\/\/emmet.io\/ HTML\u3068CSS\u306e\u8a18\u8ff0\u3092\u52b9\u7387\u5316\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u7528\u306e\u30d7\u30e9\u30b0\u30a4\u30f3 20 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[95,30,96,63],"class_list":["post-1087","post","type-post","status-publish","format-standard","hentry","category-dev","tag-html","tag-sublimetext","tag-windows-10","tag-preference"],"_links":{"self":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/comments?post=1087"}],"version-history":[{"count":0,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1087\/revisions"}],"wp:attachment":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/media?parent=1087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/categories?post=1087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/tags?post=1087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}