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

8
LINES

< > BotCompany Repo | #1002447 // sourceCodeToHTML (pre + htmlencode + word-wrap)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (73L/1K).

static S sourceCodeToHTML(S src) {
  ret sourceCodeToHTML_noEncode(htmlencode2(src));
}

// works for String, StringBuffer, StringBuilder
static S sourceCodeToHTML(O o) {
  ret sourceCodeToHTML(str(o));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002447
Snippet name: sourceCodeToHTML (pre + htmlencode + word-wrap)
Eternal ID of this version: #1002447/4
Text MD5: e9c511a3d7debf0852574373fc2f3df1
Transpilation MD5: a55b01bcf9680e58b0bf04013beebdba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-29 11:29:26
Source code size: 211 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 737 / 836
Version history: 3 change(s)
Referenced in: #1003089 - hsourcecode - synonym of sourceCodeToHTML
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030007 - sourceCodeToHTML_noEncode
#3000382 - Answer for ferdie (>> t = 1, f = 0)