Created
May 12, 2020 12:40
-
-
Save kdmsnr/94d2c1c4efa877de915cbb42f7b8cfea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrapbox.PopupMenu.addButton({ | |
title: 'code', | |
onClick: text => { | |
return 'code:script\n' + text.split(/\n/).map(line => '\t' + line).join('\n'); | |
} | |
}); | |
scrapbox.PopupMenu.addButton({ | |
title: 'table', | |
onClick: text => { | |
return 'table:table\n' + | |
text.split(/\n/).map(line => '\t' + line.split(/,/).join("\t") ).join('\n'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment