---
title: "ink.highlighter: Highlighter — Doc kit command — Kition"
description: "Selects the highlighter ink tool in the editor with a colour and width."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/ink.highlighter"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/doc/commands/ink.highlighter](https://developer.kition.ai/docs/kits/doc/commands/ink.highlighter)

# ink.highlighter

**Highlighter.** Selects the highlighter ink tool in the editor with a colour and width.

- Kit: Doc 0.1.0 (.docx); reference: [Doc kit commands](https://developer.kition.ai/docs/kits/doc.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `color` | `string` | no | like RRGGBB |
| `width` | `number` | no | points |

## Call through doc_run

```text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "ink.highlighter" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `color`, `width`. doc_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `highlighter` | `object` | no |  |
| `mode` | `object` | no |  |
| `pen` | `object` | no |  |
| `pencil` | `object` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "highlighter": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "width": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "mode": {
      "additionalProperties": true,
      "properties": {
        "pen": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "pen": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "width": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "pencil": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "width": {
          "type": "number"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "color": {
      "description": "like RRGGBB",
      "type": "string"
    },
    "width": {
      "description": "points",
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/doc-darwin-arm64@0.1.0 and the kit itself (doc_commands through @kition/cli@0.1.1, built from KitionAI/kition-doc@41e14a8).
