Skip to content
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

Get text with hexadecimal digits for colors #874

Closed
1 task done
paololazzari opened this issue Oct 19, 2023 · 1 comment
Closed
1 task done

Get text with hexadecimal digits for colors #874

paololazzari opened this issue Oct 19, 2023 · 1 comment

Comments

@paololazzari
Copy link

paololazzari commented Oct 19, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What problem does this feature solve?

Consider the following code:

package main

func main()

I would like to be able to get a string such that the code has been formatted with hexadecimal digits according to the chosen style, e.g. (I picked random colors)

[#eb4034]package[#ffffff] [#ffffff]main[#ffffff]

[#eb4034]func[#ffffff] [#d634eb]main()[#ffffff]
@alecthomas
Copy link
Owner

There's an existing API to do this, and here's an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants