Comic YAML
Transform your YAML comic scripts into beautifully formatted, professional previews directly in VS Code. Perfect for comic writers, graphic novel authors, and anyone working with sequential art narratives.
Features
- 📖 Live Preview: Open a side-by-side preview of your YAML comic script files
- 🔄 Auto-Update: Preview automatically updates as you edit the YAML content
- 🎨 Professional Formatting: Clean, readable layout optimized for comic scripts
- 🖨️ Print & Export: Save your scripts as PDF with one click
- 📝 Structured Format: Full support for chapters, pages, panels, dialogue, and narrative elements
- ⚡ Smart Error Recovery: Maintains last valid preview even with syntax errors
- 🎯 VS Code Integration: Works seamlessly with VS Code's editor and theme system
Usage
- Open a
.comic.yml
or .comic.yaml
file containing a comic script
- Click the preview button in the editor title bar, or use the command palette:
Ctrl+Shift+P
(Windows/Linux) or Cmd+Shift+P
(Mac)
- Type "Open Comic Script Preview"
- The preview panel will open to the side showing your formatted comic script
- Use the print button in the preview to print or save as PDF
The extension expects YAML files with this structure:
title: "Chapter Title"
synopsis: "Optional chapter synopsis"
credits:
- Written by XMAN
- Edited by YMAN
pages:
- name: "Opening Scene" # Optional page name
panels:
- label: "A"
desc: "Wide shot of the city skyline at dawn"
fx: "RUMBLE"
caption: "The city never sleeps..."
dialogue:
- "CHARACTER": "Hello world!"
- "CHARACTER/thought": "This is a thought bubble"
- "/narration": "Narrative text"
endCaption: "To be continued..."
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Comic YAML"
- Click Install
Manual Installation
- Download the
.vsix
file from the releases page
- In VS Code, go to Extensions
- Click the "..." menu and select "Install from VSIX..."
Requirements
- VS Code version 1.74.0 or higher
- YAML files following the comic script structure (
.comic.yml
or .comic.yaml
)
Extension Settings
This extension works out of the box with no configuration required.
Known Issues
Please report issues on our GitHub repository.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Testing & Development
This extension includes comprehensive Playwright testing for automated demos and feature validation.
Running Tests
Install Test Dependencies
npm install
npm run install:playwright
Run VS Code Extension Tests
npm run test
Run Playwright Tests
# Run all Playwright tests
npm run test:playwright
# Run with UI (interactive)
npm run test:playwright:ui
# Run only the comprehensive demo test
npm run test:playwright:demo
Automated Demo Features
The Playwright tests include a comprehensive demo that automatically:
- Creates a complete comic script with title, synopsis, credits, and multiple pages
- Demonstrates HTML Preview with professional comic script formatting
- Shows Markdown Export with clean, export-ready formatting
- Tests Live Updates by editing YAML in real-time
- Validates Error Handling with invalid YAML parsing
License
This extension is licensed under the MIT License.