WordPress Code Playground






WP Code Playground


=== WP Code Playground ===
Contributors: Joseph Quintero
Tags: code editor, playground, HTML, CSS, JavaScript, shortcode
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.2
Stable tag: 2.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create and manage multiple HTML/CSS/JavaScript playgrounds, and render them on any page or post using a shortcode.

== Description ==

WP Code Playground allows you to create, edit, and display interactive code playgrounds for HTML, CSS, and JavaScript directly in WordPress. These playgrounds can be embedded on any page or post using a shortcode, enabling dynamic and engaging content for developers, educators, or anyone experimenting with web development.

**Features:**
* Create and manage multiple code playgrounds in the admin dashboard.
* Render playgrounds anywhere using the shortcode `code_playground id=”1″`.
* Real-time code execution for HTML, CSS, and JavaScript.
* Live error reporting for JavaScript code execution.
* Separate tabs for HTML, CSS, and JavaScript inputs.
* Responsive and user-friendly interface.
* Fullscreen preview mode for better code visualization.

Use WP Code Playground for:
* Showcasing live code examples.
* Building interactive tutorials.
* Experimenting with web development directly within WordPress.

== Installation ==

1. Upload the `wp-code-playground` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Navigate to “Code Playgrounds” in the admin dashboard to create and manage your playgrounds.
4. Use the shortcode `code_playground id=”1″` (replace `1` with the desired playground ID) to embed the playground on any page or post.

== Frequently Asked Questions ==

= How do I add a playground to my page? =
Use the shortcode `code_playground id=”1″`, replacing `1` with the ID of the playground you’d like to display.

= Why is my playground preview not working? =
Ensure JavaScript is enabled in your browser. If issues persist, check the browser console for error messages or validate your JavaScript code for syntax errors.

= Can I edit or delete playgrounds? =
Yes, you can edit or delete playgrounds through the “Code Playgrounds” admin page.

= Does this plugin support responsive design? =
Yes, WP Code Playground is fully responsive and works on all devices.

= Can users interact with the code live on the frontend? =
Yes, users can modify HTML, CSS, and JavaScript in real-time and see the output instantly in the preview window.

== Screenshots ==

1. Admin dashboard for managing code playgrounds.
2. Add or edit a code playground in the admin dashboard.
3. A code playground displayed on the frontend with tabs and live preview.

== Changelog ==

= 2.3 =
* Improved error handling and frontend script management.
* Added secure iframe template for rendering playground previews.
* Enhanced responsiveness and fullscreen preview feature.

= 2.2 =
* Added live error reporting for JavaScript execution.
* Optimized the UI for better usability on mobile devices.

= 2.1 =
* Enhanced shortcode flexibility and documentation.
* Improved script enqueueing for better performance.

= 2.0 =
* Added tabs for switching between HTML, CSS, and JavaScript inputs.
* Fullscreen preview mode added for better visualization.

= 1.5 =
* Fixed iframe viewport issues.
* Enhanced layout and styling for the code editor.

= 1.0 =
* Initial release.

== Upgrade Notice ==

= 2.3 =
This update includes enhanced error handling, improved responsiveness, and a secure iframe for code previews. Update for a smoother user experience.

== License ==

This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this plugin. If not, see https://www.gnu.org/licenses/gpl-2.0.html.

AZ Managed
IT Services llc

Contact us today to request a consultation and discover how our expert solutions can help your business thrive.