Code Highlight Html

Text REST API MCP

Returns syntax-highlighted HTML for a code snippet: HTML-escaped text wrapped in <span style="color: ..."> elements using one of six colour themes (dracula, monokai, github, nord, one-dark, solarized). This is the pure highlighting step of the Code Screenshot Generator page; it returns markup plus the theme background and foreground colours, not an image.

This page documents the HTTP endpoint POST /api/tools/code-highlight-html/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/code-highlight-html/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/code-highlight-html/execute \
  -H "Content-Type: application/json" \
  -d '{
    "code": "const x = greet(\"hi\", 42);",
    "language": "javascript",
    "theme": "dracula"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/code-highlight-html

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
code string yes The source code to highlight.
language string (javascript | typescript | python | html | css | json | markdown | bash | sql | php | java | go | rust | plaintext) no Language used for keyword and comment rules. Default: "javascript". Default: "javascript".
theme string (dracula | monokai | github | nord | one-dark | solarized) no Colour theme. Default: "dracula". Default: "dracula".

Example arguments (verified)

{
  "code": "const x = greet(\"hi\", 42);",
  "language": "javascript",
  "theme": "dracula"
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:code_highlight_html after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Code Highlight Html →

More Text tools