Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1002446 // slackSnippet - format text as Slack snippet

JavaX fragment (include)

static S slackSnippet(O contents) {
  if (contents instanceof L) contents = join("\n", (L) contents);
  S s = str(contents);
  //ret "```" + (empty(s) ? "\n" : s) + "```";
  ret "```\n" + s + "```";
}

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: 663 / 1096
Referenced in: #1002799 - slackSnippetOpt - format text as Slack snippet if not empty
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)