amatsuda / jb

A simple and fast JSON API template engine for Ruby on Rails
MIT License
1.29k stars 43 forks source link

Is editor syntax highlight support available on .jb? #34

Closed KaitakuShiba closed 3 years ago

KaitakuShiba commented 4 years ago

I've searched for vscode extensions, such as rails jb or jb, but I can't seem to get any hits. I would like to know if there are any extensions that jb extension support. Thanks.

aar0nr commented 3 years ago

A jb template is just ruby, so you can configure your editor to use ruby syntax highlighting.

For vscode see: https://code.visualstudio.com/docs/languages/identifiers

"files.associations": {
  "*.jb": "ruby"
}
KaitakuShiba commented 3 years ago

Thank you ! I think I can do this.