Different colored highlights

Hey,

a question if that is already possible or maybe doable:
Is it possible to highlight text in different colors? Background is, that I clip a lot from the web (using Diigo) and use different highlight colors for various things such as different users highlighting or different passes over the same text.

Cheers,
Andrej

8 Likes

You can use custom html and/or CSS <mark style="color: red">This Thing</mark>

https://www.w3schools.com/TAgs/tag_mark.asp

Multi coloured highlighting can be very useful but even mono highlighting is barely accepted in markdown.

The html solution works but is a massive manual effort compared to just selecting and clicking text (possible in programs that have a variety of pre-set colours) - something that is quicker and easier using a mouse.

I’d be interested in any automated way of doing this.

Currently I extract the text from the md and paste it into a program that does this well.

4 Likes

I don’t see a feature request for multi-colored highlighting so feel free to create one.

The challenge is that highlighting is not standard markdown and so whatever is used won’t be portable. Users who use highlighting in other apps (Notion, Bear, DevonThink) have had import issues because every app uses a slightly different highlighting syntax.

You’re right that html is not ideal, but it would be the most portable. You could do some automation with text expanders.

1 Like

My solution works well enough for me and is much easier in RTF than MD.

The only way I can think of getting equivalent function in markdown would be a set of buttons (or right click options) which would automatically apply the desired html style. If a system like that were set up then it could be used for a wide range of other text styles such as text colour, size and font.

And they would need a much expanded set of right click options or a ribbon - which has already been requested.

3 Likes

Might actually not be a feature request so much for Obsidian (as it only needs to display it) but more for MarkDownload in the end. :thinking:

[Edit] https://github.com/deathau/markdown-clipper/issues/18

Related: Is there a name for the Markdown flavor that Obsidian is using?

In particular I’m looking for a way to export content from Obsidian to web and preserving highlights.

Is there a parser that knows how to handle ==highlighted text== or do I have to run everything through a script every time I want to export something to convert to <mark>highlighted text</mark>?

1 Like

Typora

1 Like

For my use, it’s an Obsidian issue. I don’t highlight downloads.

I guess if you can make sure that all of your markdown tools and apps using a consistent highlighting syntax, then you should be fine.

I’m not sure about fine, it’s one of the irritations in markdown that need managing.

Multi-colour solutions, if they come, will either be incompatible or use html.

I suppose it could be a little script: selecting, then choosing colour. But it would need a visual interface for choosing or different shortcuts for each colour.

2 Likes

I’m a new Obsidian user and not a geek.

I read that @tallguyjenks is using different highlight colors to do this:

I have worked about that way for over 20 years, using those colors (I mean, even on printed books and notes):

  • Yellow for factual information
  • Blue color for Actionanle content
  • Green when it is important to me.
  • Red when I disagree with the author

How can I do this easily annd rapidly, without having to type the html code each time?
@tallguyjenks , what’s your best way?

6 Likes

those highlight colors are how i highlight PDF’s in my zotero workflow, not highlights in Obsidian, i barely use highlighting in Obsidian actually

5 Likes

I get it. Thanks.
I understand it must be a bad idea to use highlight colors in Obsedian then.

I guess I must still be confused about what should be the process. I posted another message that might help understand where I’m coming from and why that confusion.

I don’t think it’s necessarily unfeasible or a bad idea to use color highlighting in obsidian.

I imagine a solution being: the ability to assign a shortcut to encapsulate text within specific html tags, as @Dor has suggested.

I think it’s a reasonable and necessary feature.

8 Likes

I think this plugin is the answer we are looking for:

Highlightr-Plugin

:tada:

4 Likes

Agreed. Great plugin.
I’d add that it is easily extended manually to allow more complex colour highlighting such as wavy underlines or overlines or strikethrough etc. I added a FR and some comments on the Github site.

I use these techniques for editing, so being able to add them and then remove them in a stroke is especially useful.

1 Like

Total newbie … love (want, and need) the Plugin functionality; how do I install a Plugin that doesn’t show in the Community Plugins page?

Wait. This probably will get me there:

Remember to install the BRAT plugin first. Makes everything easier.

1 Like