{
  "slug": "syntax-highlighter",
  "name": "gizza-ai/syntax-highlighter",
  "version": "0.1.0",
  "title": "Syntax Highlighter — code to styled HTML or ANSI — gizza.ai",
  "description": "Syntax-highlight a code snippet to self-contained inline-styled HTML (or ANSI terminal colors) for 100+ languages and many themes, in your browser. Nothing is uploaded.",
  "tags": [
    "syntax highlighter",
    "code highlighter",
    "highlight code",
    "code to html",
    "syntax highlighting",
    "ansi colors"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/syntax-highlighter/",
    "markdown": "https://gizza.ai/tools/syntax-highlighter/index.md",
    "descriptor": "https://gizza.ai/tools/syntax-highlighter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/syntax-highlighter/?code=fn%20main%28%29%20%7B%0A%20%20%20%20println%21%28%22Hello%2C%20world%21%22%29%3B%0A%7D&language=rust&theme=base16-ocean.dark&format=html"
  },
  "cli": "gizza tool syntax-highlighter 'fn main() {\n    println!(\"Hello, world!\");\n}'",
  "tool": {
    "description": "Highlight a code snippet for a given language and return styled output (inline-styled HTML or ANSI terminal escape codes).",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "description": "The source code to highlight. Required.",
          "type": "string"
        },
        "format": {
          "default": "html",
          "description": "Output format: html (default) returns inline-styled HTML; ansi returns ANSI 24-bit terminal escape codes.",
          "enum": [
            "html",
            "ansi"
          ],
          "type": "string"
        },
        "language": {
          "description": "Language hint for highlighting (e.g. rust, python, javascript, bash, json). Optional — unknown or omitted falls back to plain text.",
          "type": "string"
        },
        "theme": {
          "description": "Color theme name (e.g. base16-ocean.dark, Solarized (dark), InspiredGitHub). Optional — defaults to a dark theme.",
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "type": "object"
    }
  }
}