-
-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(GitHub code colors) change syntax #95
Comments
Hi @jerone! What if we instead add a tooltip with all the color syntax alternatives? That'd be way easier than messing with the DOM and including syntax highlighting. |
I should have specified; my main reason was to copy another syntax. |
Ahhh, ok. Let me look into it. |
So, I found a nice color conversion library. I was thinking it might be nice to include other colors like hwb, cmyk, etc. What do you think? There are a bunch of other color formats, but I think that might be too much:
|
I originally was using a details/summary to show the popup, but using the copy code snippet button would include all of the popup content. So now it's a button. The copy code snippet will still include the popup content if the popup is visible. |
Awesome work, as always! But I found two issues:
Tested here: https://github.com/Mottie/GitHub-userscripts/wiki/GitHub-code-colors
:) In the CSS world yes, but it can be used at other places too. Better to leave it as it is now (without). |
Yeah, I didn't know how to get around closing easily. So I made sure pressing Space and Enter will toggle the popup (when focused); you can also use Tab to navigate between swatches. Pressing Esc will close all popups. Update: I've updated the script info with these details. Text selection should now be fixed. |
Hi Mottie. Love your GitHub code colors userscript!
Wondering if it would be possible to add a toggle event to the color preview for changing the color syntax. I'm imagining that everything the color preview is pressed, the color syntax changes to another syntax. For example from hex to rgba, click again to hsl, etc...
The text was updated successfully, but these errors were encountered: