Adding code-formatting to TinyMCE

Post Reply
bnetz
Ssr. Bludit
Posts: 14
Joined: Sun Aug 16, 2020 6:38 pm

Hi,
I am running Bludit 3.13.1 with TinyMCE 5.4.1.
I want mark text and click a button or choose a formatting so the text is surrounded by

Code: Select all

<code>code-tags</code>
The codesample-option (like mentioned in this thread) is not an option, because I have to do it often and I just want to change the formatting of existing text to code.
I would appreciate help very much!
User avatar
Edi
Site Admin
Posts: 2592
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

You can use the plugin Code Sample for TinyMCE.

Go to the settings of TinyMCE and add codesample to the field "Toolbar top" or "Toolbar bottom" and to the field "Plugins".
Gumroad - Useful plugins for Bludit | Nützliche Plugins für Bludit
Planet-Bludit - Tipps, Snippets und hilfreiche Links (auf Deutsch)
Post Reply