spectacle icon indicating copy to clipboard operation
spectacle copied to clipboard

Highlight lines in Code Pane simultaneous with other items.

Open vegetablesalad opened this issue 3 years ago • 1 comments

Not sure if this is possible, but can I highlight code lines simultaneous with activating steps?

vegetablesalad avatar Sep 09 '21 21:09 vegetablesalad

I attempted to do this but had no success. It appears the CodePane prop highlightRanges does not handle being changed post-render. https://codesandbox.io/s/synchronized-animations-example-codepane-spectacle-b0jwzy?file=/src/index.js

I think the API of CodePane could use an update to make this possible.

Also, maybe at some point we can figure out a friendlier way to handle multiple actions on a single stepIndex without having to wrap everything. Or maybe we should just stick to what works now, without adding to the API surface area 🤷‍♂️

fritz-c avatar Sep 20 '22 19:09 fritz-c