API Documentation - Pi7 Code Highlighter

This API supports more than 480 Coding languages ​​to Highlight syntax.

With CURL Post Request

Use Curl for send post Request as shown following:

Request Parameters

1
curl -d "langcode=html&style=colorful&code=<h1>hello</h1>" -X POST https://highlighter.pi7.org/api

With HTTP POST Request

Use any programming language like PHP, C++, Python, etc. Send POST to https://highlighter.pi7.org/api with Following parameters:

{
       "langcode": "html",
       "style": "colorful",
       "line_no": "True",
       "code": "<h1>hello</h1>"
     }