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

5
LINES

< > BotCompany Repo | #1014101 // jlabel_textAsHTML_center

JavaX fragment (include)

sS jlabel_textAsHTML_center(S text) {
  ret "<html><div style=\"text-align: center;\">"
    + replace(htmlencode2(text), "\n", "<br>")
    + "</div></html>";
}

Author comment

Began life as a copy of #1014100

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: #1014101
Snippet name: jlabel_textAsHTML_center
Eternal ID of this version: #1014101/4
Text MD5: 6175e625908a8f37842da37f5fa7b1e4
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 20:58:52
Source code size: 163 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 485 / 510
Version history: 3 change(s)
Referenced in: [show references]