spectacle icon indicating copy to clipboard operation
spectacle copied to clipboard

Feature request: Copy-and-pasteable code blocks.

Open ryan-roemer opened this issue 5 years ago • 1 comments

Description

Our code blocks like https://spectacle.formidable.com/?slide=3&slideElement=-1 visually "look" like normal code, but you can't copy and paste them straight up -- the line numbers are part of the paste and all indentation is removed.

Proposal

Refactor code blocks to additionally be copy-and-pasteable in exactly the same format as originally provided, indents and all, without line numbers. (Basically, like GitHub code works).

ryan-roemer avatar Jul 09 '20 15:07 ryan-roemer

Update: current WIP PR fixes this with copy and pasteable code blocks that also skip the numbers in MD (I've highlighted some code and spacing in this screenshot) -- https://github.com/FormidableLabs/spectacle/pull/934

Screen Shot 2020-07-28 at 11 05 58 AM

ryan-roemer avatar Jul 28 '20 18:07 ryan-roemer