A
HTML Editor Syntax Highlighter Content

Add syntax highlighting in the Classic Post & Page HTML

Add syntax highlighting in the Classic Post & Page HTML text editor, Gutenberg Code Editor, and Theme & Plugin editors using CodeMirror.js

What it does

Add syntax highlighting in the Classic Post & Page HTML text editor, Gutenberg Code Editor, and Theme & Plugin editors using CodeMirror.js It is one of the abilities the HTML Editor Syntax Highlighter plugin exposes, so an AI agent connected to your site can run it for you.

Input schema

FieldTypeRequiredDescription
input string Required What you want this ability to do, in plain language.

Output schema

FieldTypeDescription
result string The result produced by the ability.

Permissions

The agent's WordPress user needs these capabilities. Grant only what's listed here, never a full admin account.

🔒 edit_pages🔒 edit_posts

How an agent calls it

Agents call this ability by name and pass the inputs it needs. A call looks roughly like this:

html-editor-syntax-highlighter.add-syntax-highlighting-in-the-classic-p
{
  "ability": "html-editor-syntax-highlighter.add-syntax-highlighting-in-the-classic-p",
  "args": { "input": ... }
}

The agent runs the ability, then hands the result back for you to review before anything is published.

Keep exploring

More HTML Editor Syntax Highlighter abilities

All HTML Editor Syntax Highlighter abilities →