Writing Syntax Highlighting for Bicep files #1970
-
I'm guessing Bicep will be supported on VSCode and Visual Studio, but are there good resources for using .bicep files with other editors? I'm curious if there's a .tmLanguage file (which could be used in several editors, such as TextMate and Sublime) or if anyone is interested in writing an extension for IntelliJ based IDEs such as Rider. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Bicep exposes a language server - an executable which implements the Language Service Protocol, an open standard for providing syntax highlighting, validation, completions, snippets, and other IDE functionality. For any editors supporting this standard (list here), supporting Bicep should just require a very thin wrapper around running the executable and passing messages back-and-forth. If you (or anyone else reading this issue) is interested in more technical details about how to set this up, I'm definitely happy to go into more detail! We're also tracking syntax highlighting support for popular (non-LSP) libraries under this issue: #596. |
Beta Was this translation helpful? Give feedback.
Bicep exposes a language server - an executable which implements the Language Service Protocol, an open standard for providing syntax highlighting, validation, completions, snippets, and other IDE functionality.
For any editors supporting this standard (list here), supporting Bicep should just require a very thin wrapper around running the executable and passing messages back-and-forth. If you (or anyone else reading this issue) is interested in more technical details about how to set this up, I'm definitely happy to go into more detail!
We're also tracking syntax highlighting support for popular (non-LSP) libraries under this issue: #596.