Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Flarum Better Code Block

A Flarum extension that adds a dedicated button for inserting code blocks with triple backticks in the editor.

Features

  • 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

Installation

composer require fakethinkpad85/flarum-better-codeblock

Usage

  1. Install the extension
  2. In the Flarum editor, select text you want to convert to a code block (optional)
  3. Click the "Code Block (Triple Backticks)" button in the toolbar
  4. The text will be wrapped in triple backticks

Development

Prerequisites

  • Node.js and npm

Setup

cd js
npm install

Building

cd js
npm run build

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages