Skip to content

Injected Languages

The parser logic allows to parse other file formats as well and to determine the respective Http blocks. This makes it possible, for example, to extend Http code blocks from Markdown with httpyac functionality. The idea is that directly from the documentation, the respective endpoints can be tested.

Markdown

In Markdown, code blocks can be given a language. If this is set to http, httpyac activates and offers to send the request.

md
## Markdown

```http
GET https://httpbin.org/json
```

Asciidoctor

In Asciidoctor, code blocks can be given a language. If this is set to http, httpyac activates and offers to send the request.

apl
== Asciidoctor

[source,http]
----
GET https://httpbin.org/json
----