Code Canvas

Code Canvas is a powerful and flexible plugin that turns your WordPress dashboard and frontend into a fully functional code playground. Built for developers, educators, and learners, it provides a clean and intuitive interface to write, preview, and manage HTML, CSS, and JavaScript code directly inside your site.


✨ Key Features

🧩 Dashboard Code Manager

  • Add and manage custom code blocks using a two-column interface.
  • Top bar with Add New form to save HTML, CSS, and JS snippets.
  • Custom database table to store code snippets securely.
  • Snippet list with Title, Edit, Delete, and Preview options.
  • Live popup preview to instantly view your HTML/CSS/JS output.

🌐 Frontend Code Editor – [code_canvas] Shortcode

  • Add a beautiful, responsive two-column layout anywhere using [code_canvas].
  • Right Column: VS Code-like tabbed editor for HTML, CSS, and JS.
  • Left Column: Live output area that instantly reflects your code.
  • Built-in Download ZIP button to export your code package.

🖥 VS Code-Style Experience

  • Syntax highlighting
  • Tabbed layout for HTML, CSS, and JavaScript
  • Responsive and accessible design
  • Real-time preview just like an IDE

📦 Download as ZIP

Easily download your code snippets with one click. The plugin automatically packages your HTML, CSS, and JS into a neat ZIP file.


🚀 Use Cases

  • Build mini web components or code experiments.
  • Let students or clients preview code live on your site.
  • Use it as a lightweight code editor sandbox for learning.
  • Demo HTML/CSS/JS without leaving your WordPress environment.

📸 Screenshots

  1. Admin dashboard with code manager and preview popup.
  2. Frontend VS Code-style editor with live preview pane.
  3. Download button to export as ZIP.
  4. Clean UI for editing and testing code.

🧩 How It Works

Admin Panel:

  • Go to Code Canvas in your dashboard.
  • Click Add New, enter your code in the form, and save.
  • View the list of saved snippets.
  • Preview your code in a popup.

Frontend Shortcode:

  • Add [code_canvas] to any page.
  • Use the code editor tabs to edit or load your saved snippet.
  • Preview your output live in the left column.
  • Click Download to save your code.

🛠 Installation

  1. Upload the plugin to your WordPress site.
  2. Activate it via the Plugins menu.
  3. Go to the Code Canvas dashboard menu to manage snippets.
  4. Use [code_canvas] shortcode to render the editor on the frontend.

💬 Support

For help, feature requests, or issues, please reach out via the Support tab or your preferred contact method.