Skip to content

Request: Syntax highlights for http #2773

@damccull

Description

@damccull

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions