This is a quick stripped-down version of Stefan van den Akker's Power Format Pack add-on. It is designed to work with Anki 2.1, but it is only meant as a holdover until someone finds the time to port PFP in its entirety (or until similar features arrive in Anki itself). Please don't expect any further major additions like markdown support, etc.
- Highlight text
- Insert code block
- Insert horizontal line
- Toggle unordered list
- Toggle ordered list
- Indent selection
- Outdent selection
- Alignment buttons
The add-on offers some limited configuration capabilities, but they are not as fleshed out nor as user-friendly as PFP. You will have to use Anki 2.1's built-in config manager to update the config dictionary (Tools → Add-ons → Select Mini Format Pack → Click configure).
The properties you can modify include:
hotkey
andtooltip
of each action- order of actions (by shifting the
{}
-enclosed button definitions around) - available actions (by deleting any of the
{}
-enclosed button definitions)
Your changes will be applied once you restart your editor window (if running). Please do not change the 'name
' property, as this is used to assign the corresponding button to the function it calls.
If you're looking for even more powerful formatting features in Anki 2.1, make sure to also check out some of the following add-ons:
- Add Table for table support. Also check out this guide for more complex table layouts.
- Add Hyperlink for hyperlink support
- Syntax Highlighting for pretty-formatted code snippets
Copyright(c) 2014-2018 Stefan van den Akker Copyright(c) 2017-2018 Damien Elmes Copyright © 2018-2023 Aristotelis P. (Glutanimate)
Mini Format pack is based on Power Format Pack by Stefan van den Akker. All credit for the original idea and implementation goes to him. I would like to express my heartfelt gratitude for all of what he has done for the Anki community over the years. PFP was one of the projects that originally inspired me to go into add-on development. Thank you for that, Stefan!
Licensed under the GNU AGPLv3, extended by a number of additional terms. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. For more information on the license please see the LICENSE file accompanying this add-on. The source code is available on GitHub. Pull requests and other contributions are welcome!