=== Init Code Inserter ===
Contributors: brokensmile2103
Tags: comment, code block, syntax highlighting, PrismJS, shortcode
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily insert code snippets into WordPress comments with PrismJS syntax highlighting, shortcode support, and a friendly modal UI.

== Description ==

**Init Code Inserter** lets users quickly insert syntax-highlighted code blocks into the WordPress comment field via a modern modal interface. Ideal for developer blogs, tech tutorials, or discussion communities.

Key Features:

* Adds an "Insert Code" button to the comment form  
* Modal popup with language selector and textarea input  
* Syntax highlighting using PrismJS (auto-loaded only when needed)  
* Uses clean `[code lang="language"]...[/code]` shortcode  
* No conflict with existing PrismJS setups  
* Lightweight, fast, and framework-free  
* Fully translatable (supports English & Vietnamese)

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`  
2. Activate via the 'Plugins' menu  
3. Visit a single post with comments enabled and try the "Insert Code" button  

== Frequently Asked Questions ==

= Can I customize the languages in the dropdown? =  
Yes. Edit the `assets/js/script.js` file to modify the list of languages shown in the modal.

= Will it conflict if my theme already loads PrismJS? =  
No. The plugin checks for `window.Prism` and only loads its own version if PrismJS is not present.

= How can I support more languages in PrismJS? =  
You can replace the default `prism.js` with a custom build from [PrismJS.com](https://prismjs.com/download.html).

== Changelog ==

= 1.0 =  
* Initial release  
* Adds "Insert Code" modal with language selector  
* Supports shortcode format and PrismJS rendering  
* Auto-detects and loads Prism if missing  
* Fully bilingual (English + Vietnamese)

== Upgrade Notice ==

= 1.0 =  
Initial stable release. Easily insert syntax-highlighted code blocks into WordPress comment areas.
