Drop a full-featured code editor — with syntax highlighting, inline AI completions, and a live page or console viewer — into any website with a single script tag.
Paste one <script> tag inside your <head>.
That's the entire installation — no npm, no build step, no dependencies.
The editor lives inside any <div> you choose.
Control its size with regular CSS and override any colour with --xce-* custom properties.
width and height. The editor fills it completely.--xce-* token on the container. They cascade down so only your editor is affected.
Pass a config object when initialising. Pick a viewer mode,
choose your language, and optionally enable aiEnabled
for Tab-to-complete ghost text.
Below is a realistic website mockup with XCode Editor embedded inside a dashboard layout — complete, copy-ready code below the preview.
Everything you can call on the editor instance after initialisation.
Tab Accept AI suggestion (or indent)Esc Dismiss AI suggestionCtrl + Enter Run code( [ { " ' Auto-close bracket/quote