AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
237 stars 20 forks source link

Syntax highlighting in Markdown #149

Closed QuAzI closed 2 years ago

QuAzI commented 2 years ago

Please add syntax highlighting to markdown. Only send button presents at the moment

image

AnWeber commented 2 years ago

Syntax highlighting in Markdown is added with v5.7.1. So you found the sources:-) Thx for using my app

QuAzI commented 2 years ago

Yeah! Amazing app. I hope it can be helpful even for autotests. But MD a bit unfinished because right part still not highlighted image

AnWeber commented 2 years ago

@QuAzI This is automatically generated from the Markdown by markdown-it. I thought that there is no interface for this on the part of VSCode, since this is not mentioned in the VSCode API. But this is not quite correct, as it is described on a separate page (Adding support for new syntax with markdown-it plugins). I must confess, however, that I don't currently have much time to familiarize myself with the markdown-it api to provide a complete syntax highlighting. Maybe the extension davidmwhynot.markdown-higlightjs or bierner.markdown-prism will help you, it offers limited syntax highlighting. Prism is used on httpyac.github.io

image

PR are also gladly accepted. Basically you have to convert the http.tmLanguage.json into a markdown-it API.