Skip to content
Discourse Plugin: Code Fences Buttons (cfbtn)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/javascripts/discourse/initializers
config
.editorconfig
.gitignore Initial Import of Spoiler Text Plugin Nov 7, 2015
.jshintrc
LICENSE.txt Initial Import of Spoiler Text Plugin Nov 7, 2015
README.md
discourse-cfbtn-settings.png
discourse-cfbtn-usage.png
plugin.rb

README.md

Discourse Plugin: Code Fences Buttons (cfbtn)

This plugin adds buttons to your Discourse composer toolbar for inserting code fences with language-specific syntax highlighting.

Currently, there are three options implemented:

  • Buttons for OpenHAB items, rules and sitemap syntax highlighting
  • One button for JavaScript syntax highlighting
  • One custom syntax button, can be freely assigned with a language in settings

It's easy to add yet another button to create code fences or whatever you want to paste into the composer window. PRs welcome!

Usage

Admin Settings

Further information

This plugin is based on another plugin, please have a look for more details: https://github.com/cpradio/discourse-plugin-spoiler-ui

You can’t perform that action at this time.