zxh0 / vscode-proto3

vscode extension for proto3
MIT License
325 stars 73 forks source link

Support for protocol buffer text format? #48

Open hickford opened 5 years ago

hickford commented 5 years ago

Hi. Are there any plans to support syntax highlighting for the protocol buffer text format (textproto)?

Example https://github.com/google/nvidia_libs_test/blob/master/cudnn_benchmarks.textproto

convolution_benchmark {
  label: "NHWC_128x20x20x56x160"
  input {
    dimension: [128, 56, 20, 20]
    data_type: DATA_HALF
    format: TENSOR_NHWC
  }
}
zxh0 commented 5 years ago

Not yet : (

hickford commented 3 years ago

This might now be possible using https://github.com/thejustinwalsh/textproto-grammar by @thejustinwalsh

https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#textmate-grammars

synckey commented 1 year ago

Any updates on this?

thejustinwalsh commented 1 year ago

This might now be possible using https://github.com/thejustinwalsh/textproto-grammar by @thejustinwalsh

I think @hickford was recommending you install the plugin that I "maintain". 😂

It supports the "pbtxt", "prototxt", "textproto" extensions out of the box.