KraXen72 / obsidian-painter

paint text different colors
Mozilla Public License 2.0
33 stars 0 forks source link

Painter

Obsidian plugin

Paint text different colors

minimal-menu
normal-menu
commands

Inspired by my css snippet & data.json to use Highlightr to change text color.
The aim of this plugin is to support most features of Highlightr-Plugin as well as changing of the text color.

Improvements over original plugin

New features

Fixes

Other

Support plugin development

If you find this Plugin helpful, consider it's further development or just say a small thank you
liberapay kofi

Migrating from highlightr

If you've previously used the highlightr plugin, you can migrate your settings by copying:

Then, disable & enable the Painter plugin. Make sure to check settings have sucessfully migrated, and if they have, feel free to uninstall highlightr.

css-classes vs. inline-styles: which should you choose?

The settings allow you to select between two highlight styles, css-classes and inline-styles. Here is their comparison:

css-classes

Unless you plan on frequently exporting your notes outside of obsidian, use Obsidian Publish or edit notes in externally, pick this option. It's much more flexible. Even if you plan to someday export your notes, you can always write a simple script to convert the <mark> elements to whatever you want, or add a custom stylesheet that will add back their coloring.
In a future plugin release, there will likely be an option to generate this stylesheet for usage outside of obsidian.

inline-styles

Some people might prefer this method, so i kept it in.
Feel free to experiment with them to find the one best for your use-case.

i can't see the color previews in context menu

menu
If your context menu looks like this and not like the one in the screenshots above, in Obsidian settings, Appearance > Advanced, turn off Native menus.

Credits

What this plugin doesen't try to be

This plugin is for coloring/highlighting text.
It doesen't try to provide a comprehensive formatting toolbar/experience. Out of scope: Modal highlighting (highlighting brushes)
Use this: obsidian-editing-toolbar