Add a button at the top right of every code block, so that user can easily copy the code by just one click.
The main work will be done in javascript as when the code is formatted after that the pre block is prepared. From that pre block one can have the code and then the brower apis, we can have the code copied.
For more info, comment here.
Add a button at the top right of every code block, so that user can easily copy the code by just one click.
The main work will be done in javascript as when the code is formatted after that the pre block is prepared. From that pre block one can have the code and then the brower apis, we can have the code copied.
For more info, comment here.