A Flarum extension that adds a dedicated button for inserting code blocks with triple backticks in the editor.
- Adds a "Code Block (Triple Backticks)" button to the editor toolbar
- Inserts triple backticks around selected text
- Positions the cursor inside the code block for immediate typing
- Works with the standard Flarum editor
composer require fakethinkpad85/flarum-better-codeblock- Install the extension
- In the Flarum editor, select text you want to convert to a code block (optional)
- Click the "Code Block (Triple Backticks)" button in the toolbar
- The text will be wrapped in triple backticks
- Node.js and npm
cd js
npm installcd js
npm run buildMIT