Change text color with Popclip (MacOS)

Hi All,

Sorry if already posted, just wanted to share a method I’m using to change color of text, that I found cumbersome to do it.

I am new to Obsidian but I heavy user of Popclip in MacOS. Today I create an extensión of Popclip that solved this issued for me.

Just select the text and changed with the Popclip:

cc

This is the script I used to create the extension:

#!/bin/bash
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby

prefix = "<font style=color:#fb8b24><strong>"
suffix = "</strong></font>"
input = ENV['POPCLIP_TEXT']

space = input.match(/^([\s\n]*)\S.*?([\s\n]*)$/m)
print "#{space[1]}#{prefix}#{input.strip}#{suffix}#{space[2]}"

Thanks