Edit templates in real-time with Base47's powerful editor
The Live Editor is Base47's built-in code editor that lets you:
The Live Editor has three main sections:
Navigate your template files easily:
Template-Name/
├── 📄 index.html # Main template
├── 🎨 style.css # Styles
├── ⚡ script.js # JavaScript
├── 📋 theme.json # Metadata
└── 📁 assets/
├── 🖼️ images/
└── 🔤 fonts/
See your changes instantly:
Your work is automatically saved:
Pro users get automatic backups:
Edit your template structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Template</title>
</head>
<body>
<header class="hero-section">
<h1>Welcome to My Site</h1>
<p>This is my amazing template</p>
</header>
</body>
</html>
Customize your template appearance:
.hero-section {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 100px 20px;
text-align: center;
}
.hero-section h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
Add interactive features:
document.addEventListener('DOMContentLoaded', function() {
// Smooth scrolling for navigation links
const links = document.querySelectorAll('a[href^="#"]');
links.forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
target.scrollIntoView({ behavior: 'smooth' });
});
});
});
Create variations of existing templates:
Test your templates on different devices:
Use media queries for responsive design:
/* Mobile styles */
@media (max-width: 767px) {
.hero-section h1 {
font-size: 2rem;
}
}
/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
.hero-section {
padding: 80px 40px;
}
}
/* Desktop styles */
@media (min-width: 1024px) {
.hero-section {
padding: 120px 60px;
}
}
| Shortcut | Action |
|---|---|
Ctrl+S |
Save file |
Ctrl+Z |
Undo |
Ctrl+Y |
Redo |
Ctrl+F |
Find |
Ctrl+H |
Find & replace |
| Shortcut | Action |
|---|---|
Ctrl+Space |
Trigger IntelliSense |
F12 |
Go to definition |
Alt+Click |
Multiple cursors |
Ctrl+D |
Select next occurrence |
Shift+Alt+F |
Format document |