This API supports more than 480 Coding languages ββto Highlight syntax.
Use Curl for send post Request as shown following:
1 | curl -d "langcode=html&style=colorful&code=<h1>hello</h1>" -X POST https://highlighter.pi7.org/api
|
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>" }