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

Unable to provide lipgloss background on text highlighted by Chroma #124

Open
noahgorstein opened this issue Sep 30, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@noahgorstein
Copy link

I attempted to highlight some JSON using Chroma and seemed to be unable to highlight the background of the highlighted text using lipgloss.

Code roughly looked like:

buf := new(bytes.Buffer)
quick.Highlight(buf, prettyJSON.String(), "json", utils.GetTerminalColorSupport(), chromaStyle.Name)
fmt.Println(lipgloss.NewStyle().Background(lipgloss.Color("22")).Render(buf.String()))

Resulted in:

image

Using a hex color for the background also did not work.

I can definitely try and provide more info if needed.

@noahgorstein noahgorstein changed the title Unable to highlight text highlighted by Chroma's background Unable to provide lipgloss background on text highlighted by Chroma Sep 30, 2022
@muesli muesli added the bug Something isn't working label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants