vscode-json icon indicating copy to clipboard operation
vscode-json copied to clipboard

json codeblock in rst file not recognized

Open langebe opened this issue 6 years ago • 3 comments

I have a .rst that is part of a documentation that contains the following line before the json code: .. code-block:: JSON

Syntax checker is not working in this situation.

Would it be possible to add support for this? If necessary I can provide an example file.

I think it should be okay to search for code-block:: JSON or code-block: JSON and treat the code starting from the code from the next { until the ending } as json.

langebe avatar Jun 03 '19 15:06 langebe

Hello, this feature you said is great, I hope to provide sample files. thank you!

ZainChen avatar Jun 04 '19 15:06 ZainChen

Hello ZainChen, sorry for responding so late, totally missed your reply on this! Attached is a small example file. jsontest.txt

This is about code-block directive support for Sphinx to be more precise. https://www.sphinx-doc.org/en/1.5/markup/code.html

langebe avatar Jun 27 '19 16:06 langebe

Thank you for your help, this feature has been included in the development plan.^_^

ZainChen avatar Jun 28 '19 01:06 ZainChen