Toolkit · Custom Code

Shared Code Editor

One editor for HTML, CSS, JavaScript, PHP, and JSON—syntax highlighting everywhere Toolkit asks for code.

Shared Code Editor screenshot

Where it lives

Every code field in Tweaks and Tools → Code Snippets

How it’s enabled

Loads automatically wherever a code field appears

Cost

Free — included in Toolkit

What you get

Write code where you configure it.

Toolkit wraps the WordPress CodeMirror editor and mounts it on every code field: HTML/CSS tools, Admin CSS, Snippets, and more. If highlighting is disabled for a user, the field falls back to a plain textarea.

Five languages

HTML, CSS, JavaScript, PHP, and JSON modes.

Everywhere

Settings screens and the Snippets editor share one component.

Sensible defaults

Two-space CSS tabs; PHP mode opens ready for snippets.

Graceful fallback

A plain textarea when highlighting is off or unsupported.

How it works

Three steps. No wizard.

Open a code field

HTML/CSS, Admin CSS, or Code Snippets.

Edit

Type with highlighting and bracket matching.

Save

As you would on that screen.

Be honest

What it doesn’t do

Not a standalone screen; it is the component behind every code field.

Shared Code Editor is included in Toolkit.

Install the platform, switch this on from Available Tools, and leave everything else off.

Scroll to Top