Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/SoundDevelopment/bbcode-editor

juce TextEditor descendant that accepts BBCode.
https://github.com/SoundDevelopment/bbcode-editor

Last synced: 3 months ago
JSON representation

juce TextEditor descendant that accepts BBCode.

Awesome Lists containing this project

README

        

# [JUCE](https://juce.com/) BBCodeEditor Module

###### *by Marcel Huibers | [Sound Development](https://www.sounddevelopment.nl) 2022 | Published under the [MIT License](https://en.wikipedia.org/wiki/MIT_License)*

A descendant of `juce::TextEditor` that accepts [BBCode](https://www.bbcode.org/reference.php) formatted text.
Supports all formatting options that `juce::TextEditor` supports.

Features:
* Font family, height and colour.
* **Bold**, *italic* and underline.
* Bullet lists.
* Quotes.
* Code segments.

# Usage

BBCodeEditor can be easily swapped with any existing `juce::TextEditor`.

Declare the editor:
```
sd::BBCodeEditor m_codeEditor;
```
Add it in your constructor:
```
addAndMakeVisible(m_codeEditor);
```
Add BBCode formatted text to the editor:
```
m_codeEditor.setBBtext( bbText );
```


-----
*Sound Development 2022*