2
0

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.

SlimファイルをSublimeTextで視認性良くするためにシンタックスハイライトを設定

Posted at

会社でSlimファイルを使ってまして
SublimeTextで幸せになるようにシンタックスハイライトを設定しました:relaxed:

ハイライトされてない状態

スクリーンショット 2017-11-15 10.06.32.png 真っ白ですね〜。でもSlimの性質上(性質?)インデントは美しいです:relaxed: Slimはインデントを使用した簡略構文となってまして `<``>``/>`といったタグは書きません。インデントを入れ子にすることで閉じタグを表現します。 なので強制的に美しいインデントが出来上がるのですが、`<``>``/>`がないのでテキストの可読性が悪くなります

そこでシンタックスハイライトの登場です!
SublimeTextにインストールしましょう〜:clap:

SublimeTextを開く

Sublime_Text_3_logo.png
いつの間にかSublimeTextのアイコンが変わってました:wink:

コマンドパレットからPackage Control: Install Packageを選択します。

Ruby Slimを検索して選択

スクリーンショット 2017-11-15 10.08.14.png

インストールされたらSublimeTextを再起動

スクリーンショット 2017-11-15 10.04.26.png

これでシンタックスハイライトされました:art:やった〜:v:

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?