Implement in-browser code playground with live execution - #5047
Implement in-browser code playground with live execution#5047anshul23102 wants to merge 1 commit into
Conversation
…arborhub#5024) Add interactive code playground component supporting JavaScript, HTML, and CSS: - CodePlayground.jsx: Dual-pane editor with console output and live preview - JavaScript execution with console.log/error/warn support - HTML live preview with event handler support - CSS preview with sample HTML rendering - Tab indentation, syntax-aware editing - Ctrl+Enter keyboard shortcut to run - CodePlayground.module.css: Professional split-view styling - Responsive grid layout - Color-coded console output (log/error/warn/info) - Smooth transitions and hover effects - Mobile-responsive stack view - Custom scrollbar styling - CodePlaygroundExample.mdx: Complete documentation with examples - Language support overview - Keyboard shortcuts reference - Usage examples for all languages - Accessibility features documented - Tips and limitations Features: ✓ Split editor/output panes with live execution ✓ Console output with message type indicators ✓ HTML preview in sandboxed iframe ✓ CSS preview with sample styling area ✓ Tab indentation support ✓ Quick action buttons: Run, Copy, Reset ✓ Keyboard accessibility ✓ Mobile responsive design ✓ Error handling and reporting
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
There was a problem hiding this comment.
Great job, @anshul23102! 🎉 Thank you for submitting your pull request to CodeHarborHub. We appreciate your contribution and enthusiasm! Our team will review it soon. If you have any questions or need further assistance, feel free to reach out. Thanks for contributing!
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Jul 27, 2026 6:06p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Adds interactive code playground with split-pane editor and live execution for JavaScript, HTML, and CSS.
Features:
Supports:
Documentation includes examples for all languages with keyboard shortcuts.
Closes #5024