# Code Highlight Html — REST API endpoint `code-highlight-html`

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.

- Category: text
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/code-highlight-html/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/code-highlight-html/
- Same tool on the other surface: https://findutils.com/mcp/code-highlight-html/

## Call the endpoint (verified example)

```bash
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
curl https://api.findutils.com/api/tools/code-highlight-html
```

## 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):

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

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:code_highlight_html`. Full MCP reference: https://findutils.com/mcp/code-highlight-html/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
