gatsby-remark-vscode icon indicating copy to clipboard operation
gatsby-remark-vscode copied to clipboard

How to add Language Support for extensions not on NPM?

Open liamfoneill opened this issue 3 years ago • 1 comments

I'm new to JS so please forgive me if this is a silly question 😁

I would like to add Syntax support for Hashicorp Terraform (HCL) and Azure Bicep. In VS Code adding syntax highlighting is achieved by installing the following extensions:

Bicep: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep Terraform: https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform

I can't find the equivalent of either of these on NPM so not sure how to proceed.

liamfoneill avatar Feb 16 '22 14:02 liamfoneill

The README covers this: https://github.com/andrewbranch/gatsby-remark-vscode#using-languages-and-themes-from-an-extension

You still use npm but it reads from GitHub. Unfortunately some GH repos don’t behave well with this (e.g. if they need a build step to generate the JSON/YAML grammar files), in which case you’d have to build it yourself and bundle the result with your project, which is also mentioned in the README.

andrewbranch avatar Feb 18 '22 00:02 andrewbranch