Writing code
On this page
The editor gives you everything you need to write clean, valid code.
Syntax highlighting
CSS, JavaScript, and HTML are color-coded for easy reading, so tags, properties, values, and functions stand out at a glance.
Autocomplete
Real-time autocomplete suggests CSS properties, JavaScript functions, and WordPress hooks as you type. Pick a suggestion to insert it without typing it out.
Code beautifier
Format messy code with one click. Click Format code in the code toolbar to reindent and clean up your snippet.
Error detection
Syntax errors are flagged as you write, so mistakes never reach your site. Warnings and errors appear inline in the editor.
Code type controls
At the top of the editor:
- CSS / JS / HTML — switch the snippet’s type.
- Live / Off — toggle whether the snippet runs on your site.
- Save draft / Publish — save your work or make it live.
Related
- Code editor — editor overview.
- AI-powered code generation — generate code from a prompt.