LoginSignup
1
0

More than 3 years have passed since last update.

テンプレートリテラル記法の中でHTMLをハイライトさせる

Posted at

やりたいこと

VSCodeでJSファイルの中でテンプレートリテラル記法を使ってHTMLを書く時、テンプレートリテラル内のHTMLをシンタックスでいい感じで色付けしたい
ProductDisplay_js_—_intro-to-vue-3.gif

結論

  1. 拡張機能(es6-string-html)を入れる
  2. テンプレートリテラル記法の直前に/*html*/の記述を付け加える

補足

/*html*/の記述を付け加えないと、味気ない感じになってしまうProductDisplay_js_—_intro-to-vue-3.gif

1
0
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
1
0