1 | static S slackSnippet(O contents) {
|
2 | if (contents instanceof L) contents = join("\n", (L) contents);
|
3 | S s = str(contents); |
4 | //ret "```" + (empty(s) ? "\n" : s) + "```"; |
5 | ret "```\n" + s + "```"; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002446 |
| Snippet name: | slackSnippet - format text as Slack snippet |
| Eternal ID of this version: | #1002446/1 |
| Text MD5: | f4b60a510176b4080be120e07c271b33 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-02-16 01:02:25 |
| Source code size: | 205 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 907 / 1334 |
| Referenced in: | [show references] |