Replies: 2 comments 1 reply
-
Could you describe a situation where you need this? If needed to apply styles to parts of a render, I'd probably use the Text class. With Text you can apply styles to arbitrary ranges, and efficiently in to segments. |
Beta Was this translation helpful? Give feedback.
1 reply
-
To sum it up, I'm missing some kind of "stylize" method for the line API, which is available for rich in Text class (stylize) or Syntax class (stylize_range). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've had several situations where I needed a method to apply a style to the Strip from a to b, in addition to Strip.apply_style.
Such a functionality would be helpful if the underlying segments (where styles may have already been applied to the segments)
need different styles and not only one style as with Strip.apply_style 🙂 .
Here is an example how this method could look like inside the Strip class (no caching implemented)
Beta Was this translation helpful? Give feedback.
All reactions