Content widget

Code Highlight

Code in a tidy block with a file name, line numbers, highlighted lines and a copy button.

Build it with your AI

“Add this JSON example with the file name element.json and line 3 highlighted.”

Live demo

See it working

This is the real widget, not a picture

element.jsonJSON
{
  "type": "button",
  "settings": { "text": "Download free", "link": { "url": "/download/" } }
}

Settings

30 settings in three tabs

Every setting below is in the editor — and available to your AI through get_widget_schema.

Content

12 settings

Code

Code

Language

File name / title

Show language label

Line numbers

First line number

Highlight lines

Wrap long lines

Copy button

Copy label

Copied label

Theme

Design

18 settings

Box

Font size

Code typography

Max height

Tab size

Background

Text color

Code padding

Border radius

Border

Shadow

Header

Background

Text color

Typography

Lines

Line number color

Highlighted line background

Highlighted line marker

Copy button

Text color

Background

Behaviour

shared

On every element

Spacing & position

Background & border

Animations

Motion & effects

Scroll & mouse effects

Visibility

Conditions

Interactions

Attributes & CSS

Build it with AI

Just describe what you want

Your AI looks up the Code Highlight settings over MCP and writes the element for you — real, editable and on brand.

Claude · connected to your site

You

Add this JSON example with the file name element.json and line 3 highlighted.

Claude · using Uncoder

Done — it’s on your site and fully editable.

  • Code Highlight added where you asked
  • Styled with your Design System
  • Checked on tablet and mobile
  • get_widget_schema
  • edit_elements
  • audit_page

What the AI writes

code-highlight.jsonJSON
{
  "type": "code-highlight",
  "settings": {
    "language": "json",
    "title": "element.json",
    "highlight_lines": "3",
    "code": "{\n  \"type\": \"button\",\n  \"settings\": { \"text\": \"Download free\", \"link\": { \"url\": \"/download/\" } }\n}"
  }
}

Free · GPL · No account

Your next site is one prompt away

Install Uncoder, connect your AI and describe what you want. Every page it builds stays yours to edit.