Overview
The display mode is controlled by themode property in the configuration:
Available Modes
Full Mode
The complete LiveCodes experience with all features enabled.
- All three editors (markup, style, script)
- Result page
- Tools pane (console, compiled code viewer, tests)
- Full menu and toolbar
- Language selection
- All configuration options
- Full playground experience
- Development and prototyping
- Teaching and tutorials with full features
Focus Mode
Simplified UI with focus on the code and result.
- Active editor and result page
- Minimal toolbar
- Tools available but simplified
- Language selection hidden by default
- Focused coding sessions
- Presentations and demos
- Embedded playgrounds with less clutter
Lite Mode
Lightweight mode with minimal UI and faster loading.
- Lightweight code editor (CodeJar)
- Single active editor
- Result page
- Minimal toolbar
- No tools pane by default
- Faster load time
- Quick demos and examples
- Embedded in documentation
- Mobile-friendly playgrounds
- Performance-critical embeds
Lite mode can also be enabled with the
lite parameter instead of mode=lite.Simple Mode
Simplified interface similar to lite mode but with standard editors.
- Standard code editors (Monaco/CodeMirror)
- Single active editor
- Result page
- Simplified toolbar
- Basic tools available
- Simple embeds with better editor features than lite
- Educational content
- Code examples with syntax highlighting
Editor Mode
Shows only the code editor, no result page.
- Code editor only
- No result page
- No tools pane
- Minimal UI
- Language selection available
- Code snippets and examples
- Documentation code blocks
- Focus on code only
- Syntax highlighting
In editor mode, the
tools configuration is automatically set to none.Codeblock Mode
Minimal code block display, similar to syntax-highlighted code in documentation.
- Lightweight editor (CodeJar)
- Syntax highlighting only
- No result page
- No tools
- No UI chrome
- Often used as read-only
- Syntax-highlighted code blocks
- Documentation examples
- Static code display with copy functionality
- README files and blog posts
Result Mode
Shows only the result page, no editors.
- Result page only
- No code editors visible
- No tools pane by default
- Full result page viewport
- Showcasing results
- Demos and presentations
- Embedded apps and components
- Live previews
Headless Mode
While not amode value, headless mode is enabled via the headless embed option:
- No UI rendered at all
- Full SDK access
- Code execution in background
- Event listening available
- Testing and automation
- Code execution without UI
- Backend integration
- Custom UI implementations
Mode Comparison
| Feature | Full | Focus | Lite | Simple | Editor | Codeblock | Result |
|---|---|---|---|---|---|---|---|
| All Editors | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| Result Page | ✓ | ✓ | ✓ | ✓ | - | - | ✓ |
| Tools Pane | ✓ | ✓ | - | ✓ | - | - | - |
| Full Menu | ✓ | - | - | - | - | - | - |
| Lang Select | ✓ | - | - | ✓ | ✓ | - | - |
| Monaco/CM | ✓ | ✓ | - | ✓ | ✓ | - | ✓ |
| CodeJar | - | - | ✓ | - | - | ✓ | - |
| Load Speed | Slow | Medium | Fast | Medium | Medium | Fast | Fast |
| Bundle Size | Large | Medium | Small | Medium | Medium | Small | Medium |
Combining with Other Options
With View Setting
Theview property works with modes that show both editor and result:
With Readonly
Modes work well with readonly configuration:With Tools
Customize tools for each mode:Examples
Interactive Tutorial (Full Mode)
Documentation Example (Codeblock Mode)
Live Demo (Result Mode)
Quick Prototype (Lite Mode)
URL Examples
Full Mode with Console
Lite Mode with Python
Editor Mode with TypeScript
Result Mode with React
Codeblock with Readonly
Switching Modes at Runtime
You can change the mode dynamically:Best Practices
Choose Based on Use Case
Choose Based on Use Case
- Full mode: Complete playground features
- Lite mode: Fast loading, simple demos
- Editor mode: Code examples without execution
- Result mode: Showcase output
- Codeblock mode: Documentation snippets
Performance Considerations
Performance Considerations
Lite and codeblock modes load faster and use less memory. Use them for multiple embeds on a single page.
Mobile Optimization
Mobile Optimization
Lite and simple modes work better on mobile devices due to their simplified UI and smaller bundle size.
Readonly + Codeblock
Readonly + Codeblock
Combine codeblock mode with readonly for documentation-style code blocks that can’t be edited.
Related Documentation
Configuration Object
Complete configuration reference
View Settings
Control editor and result visibility
Embed Options
SDK embed configuration
SDK Getting Started
Learn about headless mode and more