Ori
1
how to Add copy button to the top right.
I find a way by macro:
https://groups.google.com/g/tiddlywiki/c/LOtlfS3q_YQ/m/8i213assCAAJ
But I already add many code snippets to my tw. I don’t want to change them to macro one by one. So is there a way to change them from global?
pmario
2
If this possibility would exist, we would have used it at tiddlywiki.com already.
Ori
3
Okay I don’t realize this function that hard.
pmario
4
It’s not hard. … It’s just nobody did it, because we have a working solution using macros.
Ori
5
I try copy-to-clipboard to copy my code block, seems not that great.
If I want to copy the multiline code better to write it into the “myCode” tid.
So my macro will be.
<$macrocall $name="copy-to-clipboard" src={{myCode}}/>
But you can’t add
`` `
`` `
into the myCode.tid since you don’t want to copy the code block mark.
If you don’t add the ``` the code will lose the highlight…
Add code twice one for plain, one for highlight will solve this problem, but not that graceful.