Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Syntax highlights for http #2773

Open
damccull opened this issue Jan 15, 2025 · 0 comments
Open

Request: Syntax highlights for http #2773

damccull opened this issue Jan 15, 2025 · 0 comments

Comments

@damccull
Copy link

damccull commented Jan 15, 2025

I know syntax highlighting engine is being considered for a replacement and tracked in #2758.

Whenever there's time, I would like to see a syntax for raw HTTP request syntax like:

POST /users/123/profile?thing=yes&blarg=no HTTP/1.1
Host: api.example.com
Content-Type: application/json
Authorization: Bearer your_access_token

{
  "firstName": "John",
  "lastName": "Doe",
  "bio": "A short bio about myself."
}

I use these on some of my documentation and it would be really nice to have the parts highlighted. Currently I codefence them with the 'http' language, but since there's no syntax for it, they just end up plain.

I can wait for the new engine, but please consider adding this syntax eventually.

Edit: Ooh, github does it nicely...let's get this in zola too!

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

No branches or pull requests

1 participant