ãã£ãã解説ãSublimeText3ã«Emmetãã¤ã³ã¹ãã¼ã«ãã
sublime text3 emmet ã¨ãããã¼ã¯ã¼ãã§æ¤ç´¢ããã¦ããäºãå¤ããããªã®ã§ããã£ãã解説ã§ãã
ç»é¢ã¯macã®ãã®ã§ãããwindowsã§ãåããããªæä½ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã
SublimeTextã¯ãããã±ã¼ã¸ã§æ©è½è¿½å
SublimeTextã¯ã2ãï¼ããããã±ã¼ã¸ã¨å¼ã°ãããã©ã°ã¤ã³ã§å¿
è¦ãªæ©è½ã追å ãã¦ãããã¨ãã§ãã¾ãã
Emmetãããã±ã¼ã¸ã¨ãã¦é
å¸ããã¦ãã¾ãã
ããã±ã¼ã¸ã¯ãããã±ã¼ã¸ã³ã³ããã¼ã«ã§ã
ããã±ã¼ã¸ã³ã³ããã¼ã«ãå°å
¥ããã¨ãããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ãç°¡åã§ãã
ããã±ã¼ã¸ã³ã³ããã¼ã«ã®å°å
¥æ¹æ³ã¯ã
Sublime Text 3 に Package Control をInstallするのが簡単になったよ - フロントエンドとかPCとかスマホとか
ãåç
§ãã¦ãã ããã
Emmetã®ã¤ã³ã¹ãã¼ã«
Macï¼[Sublime Text] - [Prefernces] - [Package Countrol] ã®é ã«é¸æãã¾ãã
Windowsï¼[Prefernces] - [Package Countrol] ã®é ã«é¸æãã¾ãã
[Install Packages]ãé¸æãã¾ãã
[emmet]ã¨å
¥åããã¨ãé¸æè¢ã« emmet ãåºã¦ãã¾ãã®ã§ãããé¸æãã¾ãã
ãã®ããã«åºã¦ããããã¤ã³ã¹ãã¼ã«ã¯å®äºã§ãã
html5ã®ããã©ã«ãlangãjaã«
ããã§ãhtml5ææ¸ãä½ãã¨ãã®ããã©ã«ãã®langè¨å®ãjaã«å¤æ´ãã¦ããã¾ãã
[Preferenes] - [Package Settings] - [Emmet] - [Settings-User]ãéãã¾ãã
éãããã¡ã¤ã«ã«ãä¸è¨ãè²¼ä»ãã¦ãã ããã
{ "snippets": { "variables": { "lang": "ja" } } }
ããã§ãSublimeTextã«ãEmmetãã¤ã³ã¹ãã¼ã«ã使ããããã«ãªãã¾ããã
æ°ãããã¡ã¤ã«ãä½ããæ¡å¼µå html ã§ä¿åããããå³ä¸ã®ãã¡ã¤ã«ã¿ã¤ã㧠HTMLãé¸æãã
html:5>head>ul>(li>a)*3
ã¨ãã¦ã[Ctrl]+[E]ãã¼ï¼ã¾ãã¯[tab]ï¼ãæ¼ãã¦ãã ããã
ä¸è¨ã®ããã«å±éããã¦ããã¯ãã§ãã
<!doctype html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <head> <ul> <li><a href=""></a></li> <li><a href=""></a></li> <li><a href=""></a></li> </ul> </head> </body> </html>
Emmetã«ã¯ãhtml,cssã³ã¼ãã£ã³ã°ã«å½¹ç«ã¤ããããã®æ©è½ãããã¾ãã
ããã§ãã³ã¼ãã£ã³ã°ãæãã¾ããã