3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Atom+emmet環境でejs内でもhtml展開を有効にする

3
Posted at

emmetにはユーザー拡張機能があるので、これを使用して有効にします。

拡張設定ディレクトリの確認

Settings -> Packages -> emmet -> SettingsからExtensions Pathのに設定されているディレクトリを確認します。
デフォルトでは~/emmetが設定されています。

拡張設定ファイルの配置

上記で確認した拡張設定ディレクトリに、以下の内容を記述した拡張設定ファイルを配置します。
ファイル名はsnippets.jsonとします。

snippets.json
{
    "ejs": {
        "filters": "ejs",
        "extends": "html",
        "profile": "xml"
    }
}

Atomを再起動すると、ejs内でもemmetが有効になります。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?