Skip to content

Add http support for mdfx code-block#99

Open
Dansoftowner wants to merge 5 commits intoJPro-one:mainfrom
Dansoftowner:add-mdfx-code-http-support
Open

Add http support for mdfx code-block#99
Dansoftowner wants to merge 5 commits intoJPro-one:mainfrom
Dansoftowner:add-mdfx-code-http-support

Conversation

@Dansoftowner
Copy link
Copy Markdown
Contributor

Summary

This PR adds HTTP (http / rest) fenced code block syntax highlighting to the mdfx subproject by bundling a TextMate grammar for HTTP request files.

The grammar is sourced from the VS Code REST Client extension and enables highlighting for common .http / .rest request formats (request line, headers, query params, comments, etc...)

See: https://github.com/Huachao/vscode-restclient/blob/master/syntaxes/http.tmLanguage.json (MIT license)

What changed

  • Added TextMate grammar
  • Registered/connected the grammar so markdown code fences using ```http (and ```rest) are highlighted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant