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

atom でVisual Basic (VB.NET) のコード色付け

Posted at

全くみたくありませんがVB6.0のコードを読まないといけなくなった。。
atomで開いたらもちろん plain text として開かれる。
やっぱり読みにくいので、*.bas を開いたら VB.NETとして色付けしてもらう方法。

下記をまずインストールします
language-vb

image.png

Macだと、Ctrl + Shift + Lを押せば文法の選択ができますよね。VB.NETが追加されました。
image.png

Menuバーから、Atom -> Configを選択します。
あとは下記を追加しておけばOKです。


 "*":
  "file-types":
    "*.bas": "source.asp.vb.net"
core:
  customFileTypes:
    "source.asp.vb.net": [
      "bas"
    ]

結構他のHowtoだと、customFileTypesだけ追加すればOK、
となっているけど自身の環境はfile-typesを追加しないと色付けされませんでした。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?