{"id":21505,"date":"2024-11-19T10:49:37","date_gmt":"2024-11-19T02:49:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21505\/"},"modified":"2024-11-19T10:49:37","modified_gmt":"2024-11-19T02:49:37","slug":"sublime%e6%80%8e%e4%b9%88%e7%94%9f%e6%88%90html","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21505\/","title":{"rendered":"sublime\u600e\u4e48\u751f\u6210html"},"content":{"rendered":"<blockquote><p>\n  \u5728 sublime text \u4e2d\u751f\u6210 html \u4ee3\u7801\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528 emmet \u63d2\u4ef6\uff0c\u53ef\u901a\u8fc7\u8f93\u5165\u7f29\u5199\u5e76\u6309 tab \u952e\u751f\u6210 html \u5143\u7d20\uff0c\u6216\u4f7f\u7528\u9884\u5b9a\u4e49\u7684 html \u6587\u4ef6\u6a21\u677f\uff0c\u53ef\u63d0\u4f9b\u57fa\u672c\u7684 html \u7ed3\u6784\u548c\u5176\u4ed6\u529f\u80fd\uff0c\u5982\u4ee3\u7801\u7247\u6bb5\u3001\u81ea\u52a8\u5b8c\u6210\u529f\u80fd\u548c emmet snippets\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/30\/2024053022425693755.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u751f\u6210html\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u751f\u6210html\u63d2\u56fe\" \/><\/p>\n<p><strong>Sublime Text \u4e2d\u751f\u6210 HTML \u4ee3\u7801<\/strong><\/p>\n<p>Sublime Text \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u53ef\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u751f\u6210 HTML \u4ee3\u7801\u3002\u4ee5\u4e0b\u4ecb\u7ecd\u4e24\u79cd\u5728 Sublime Text \u4e2d\u751f\u6210 HTML \u4ee3\u7801\u7684\u65b9\u6cd5\uff1a<\/p>\n<p><strong>1. \u4f7f\u7528 Emmet \u63d2\u4ef6<\/strong><\/p>\n<p>Emmet\uff08\u4ee5\u524d\u79f0\u4e3a Zen Coding\uff09\u662f\u4e00\u4e2a Sublime Text \u63d2\u4ef6\uff0c\u53ef\u6781\u5927\u5730\u63d0\u9ad8 HTML \u548c CSS \u4ee3\u7801\u7f16\u5199\u6548\u7387\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li> <strong>\u5b89\u88c5 Emmet\uff1a<\/strong>\u524d\u5f80 Package Control \uff08Ctrl+Shift+P\uff09\uff0c\u641c\u7d22\u5e76\u5b89\u88c5 &#8220;Emmet&#8221;\u3002<\/li>\n<li> <strong>\u751f\u6210 HTML \u4ee3\u7801\uff1a<\/strong>\u8f93\u5165 HTML \u5143\u7d20\u540d\u79f0\uff0c\u5728\u5143\u7d20\u540d\u79f0\u540e\u8f93\u5165\u7f29\u5199\uff0c\u518d\u6309 Tab \u952e\u3002\u4f8b\u5982\uff0c\u8f93\u5165 &#8220;div#my-id.my-class&#8221;\uff0c\u7136\u540e\u6309 Tab \u952e\uff0c\u5c06\u751f\u6210\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/li>\n<\/ul>\n<pre>&lt;div id=\"my-id\" class=\"my-class\"&gt;&lt;\/div&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>2. \u4f7f\u7528 HTML \u6587\u4ef6\u6a21\u677f<\/strong><\/p>\n<p>Sublime Text \u63d0\u4f9b\u4e86\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684 HTML \u6587\u4ef6\u6a21\u677f\u3002<\/p>\n<ul>\n<li> <strong>\u521b\u5efa\u65b0 HTML \u6587\u4ef6\uff1a<\/strong>\u5728 Sublime Text \u4e2d\uff0c\u6309 Ctrl+N \u521b\u5efa\u65b0\u6587\u4ef6\u3002<\/li>\n<li> <strong>\u4ece\u6a21\u677f\u9009\u62e9 HTML\uff1a<\/strong>\u5728 &#8220;New File&#8221; \u7a97\u53e3\u4e2d\uff0c\u5728 &#8220;Syntax&#8221; \u90e8\u5206\u4e0b\uff0c\u9009\u62e9 &#8220;HTML&#8221;\u3002<\/li>\n<li> <strong>\u751f\u6210 HTML \u4ee3\u7801\uff1a<\/strong>\u6a21\u677f\u5c06\u4e3a\u65b0 HTML \u6587\u4ef6\u63d0\u4f9b\u57fa\u672c\u7684\u7ed3\u6784\uff0c\u5305\u62ec head \u548c body \u5143\u7d20\u3002<\/li>\n<\/ul>\n<p><strong>\u5176\u4ed6\u63d0\u793a<\/strong><\/p>\n<ul>\n<li> <strong>\u4f7f\u7528 HTML \u4ee3\u7801\u7247\u6bb5\uff1a<\/strong>Sublime Text \u652f\u6301\u81ea\u5b9a\u4e49\u4ee3\u7801\u7247\u6bb5\uff0c\u53ef\u7528\u4e8e\u5feb\u901f\u63d2\u5165\u91cd\u590d\u4f7f\u7528\u7684\u4ee3\u7801\u6bb5\u3002<\/li>\n<li> <strong>\u542f\u7528\u81ea\u52a8\u5b8c\u6210\uff1a<\/strong>Sublime Text \u7684\u81ea\u52a8\u5b8c\u6210\u529f\u80fd\u53ef\u5e2e\u52a9\u7528\u6237\u81ea\u52a8\u5b8c\u6210 HTML \u5143\u7d20\u548c\u5c5e\u6027\u3002<\/li>\n<li> <strong>\u4f7f\u7528 Emmet Snippets\uff1a<\/strong>Emmet \u63d0\u4f9b\u4e86\u8bb8\u591a\u9884\u5b9a\u4e49\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u53ef\u7528\u4e8e\u751f\u6210\u5e38\u89c1\u7684 HTML \u7ed3\u6784\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u751f\u6210html\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 sublime text \u4e2d\u751f\u6210 html \u4ee3\u7801\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528 emmet \u63d2\u4ef6\uff0c\u53ef\u901a\u8fc7\u8f93\u5165\u7f29\u5199\u5e76\u6309 tab \u952e\u751f\u6210 html \u5143\u7d20\uff0c\u6216\u4f7f\u7528\u9884\u5b9a\u4e49\u7684 html \u6587\u4ef6\u6a21\u677f\uff0c\u53ef\u63d0\u4f9b\u57fa\u672c\u7684 html \u7ed3\u6784\u548c\u5176\u4ed6\u529f\u80fd\uff0c\u5982\u4ee3\u7801\u7247\u6bb5\u3001\u81ea\u52a8\u5b8c\u6210\u529f\u80fd\u548c emmet snippets\u3002 Sublime Text \u4e2d\u751f\u6210 HTML \u4ee3\u7801 Sublime Text \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u53ef\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u751f\u6210 HTML \u4ee3\u7801\u3002\u4ee5\u4e0b\u4ecb\u7ecd\u4e24\u79cd\u5728 Sublime Text \u4e2d\u751f\u6210 HTML \u4ee3\u7801\u7684\u65b9\u6cd5\uff1a 1. \u4f7f\u7528 Emmet \u63d2\u4ef6 Emmet\uff08\u4ee5\u524d\u79f0\u4e3a Zen Coding\uff09\u662f\u4e00\u4e2a Sublime Text \u63d2\u4ef6\uff0c\u53ef\u6781\u5927\u5730\u63d0\u9ad8 HTML \u548c CSS \u4ee3\u7801\u7f16\u5199\u6548\u7387\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5b89\u88c5 Emmet\uff1a\u524d\u5f80 Package Control \uff08Ctrl+Shift+P\uff09\uff0c\u641c\u7d22\u5e76\u5b89\u88c5 &#8220;Emmet&#8221;\u3002 \u751f\u6210 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21505","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21505"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21505\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}