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

Is it possible to highlight parts of text? #25

Open
tusharsadhwani opened this issue Feb 18, 2022 · 5 comments
Open

Is it possible to highlight parts of text? #25

tusharsadhwani opened this issue Feb 18, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@tusharsadhwani
Copy link

You can select text before exporting on carbon, like so:
carbon (64)
Could this be done via the API?

@tusharsadhwani
Copy link
Author

There seems to be an alternative way to highlight lines, using the selectedLines query param:
carbon-app/carbon#878
It looks like this:
carbon (65)

@tusharsadhwani
Copy link
Author

Even if query params don't work, it should be possible to just click on the line numbers themselves to highlight them manually.

@petersolopov
Copy link
Owner

As you mentioned it is not supported in query params. Try this. I'he noted in docs.

I think passing this query param should support in carbon. But yes, hypothetically it can be done manually. Feel free to add pr with this feature.

@petersolopov petersolopov added the enhancement New feature or request label Feb 19, 2022
@Pitasi
Copy link

Pitasi commented Nov 15, 2022

There is the sl query param (eg. https://carbon.now.sh/?sl=3 or https://carbon.now.sh/?sl=3,5)

@tusharsadhwani
Copy link
Author

@Pitasi neat, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants