About:
https://tonylizj.com/hl
To use this API, send a POST request to this address
with three parameters: "text" containing a code block, "lang" containing one of
['typescript', 'c', 'cpp', 'csharp', 'python', 'java', 'go', 'julia', 'kotlin', 'haskell', 'lisp', 'lua',
'makefile', 'markdown', 'matlab', 'mongodb', 'objectivec', 'pascal', 'perl', 'php', 'r', 'racket', 'ruby',
'rust', 'scala', 'scheme', 'swift', 'visual-basic', 'json', 'latex', 'graphql', 'docker', 'markup', 'css',
'clike', 'javascript']
and "quality" containing one of
['medium', 'high', 'extreme']
Example: { "text": "const a = 5;", "lang": "typescript", "quality": "high" }
Character limits: medium: 4000, high: 2000, extreme: 800
Alternatively, use the Discord bot
https://discord.com/api/oauth2/authorize?client_id=791903902874206258&permissions=10240&scope=bot
or use the graphical interface in the link below.
https://tonylizj.github.io/highlighter-ui/
This API is open source! Source code can be found at https://github.com/tonylizj/highlighter