Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'BBEdit Color Picker' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
BBEdit Color Picker
Authored by: Paul Burney on Apr 13, '06 12:34:37PM
I hacked together this script about a year ago for use in BBEdit. I wanted to be able to modify a hex color at any place in a script (BBEdit will only do it for predefined things such as in CSS styles or bgcolor attributes).

Since I do most of my work in scripting languages and not just plain HTML, I typically have a variable name specifying the color like this:
$color = '#facade';

I can double click on the color string which selects all of the text without the #, then call my applescript which is tied to a keyboard shortcut. It brings up a color picker with the selected color already chosen. I usually then modify it with the HSB controls. When I click the OK button, the hex code on the page is replaced with the hex code for the newly selected color.

If you're interested, the script is here:

http://burney.ws/software/bbcolorpicker/



[ Reply to This | # ]