# Badge Formatter (Inline Badge)

WordPress plugin that adds a toolbar button to apply a badge style to selected text. Works in both the Block Editor (Gutenberg) and the Classic Editor (TinyMCE). The badge styling is provided via CSS so the design is visible inside the editor and on the frontend.

## Install

1. Copy the `wp-badge-plugin` folder into `wp-content/plugins/`.
2. (Recommended) Replace `wp-badge-plugin/assets/css/badge.css` with your full `badge.css` used on your site to enable all colors/variants.
3. Activate the “Badge Formatter (Inline Badge)” plugin from wp-admin.

## Usage

- Block Editor: Select text in a paragraph-like block and click the “バッジ” toolbar button to toggle a badge. Default class is `badge badge-blue`.
- Classic Editor: Select text and click the “Badge” button to toggle wrapping with `<span class="badge badge-blue">…</span>`.

## Customization

- To use other color variants, edit the inserted span classes (e.g., `badge badge-pink`, `badge badge-green`, etc.). If your CSS includes additional systems like `pleiades-*` or `zephyra-*`, you can manually apply those classes as well.

