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

38
LINES

< > BotCompany Repo | #1008705 // Hyperlink+explain standard functions etc. in JavaX source [LIVE web bot]

JavaX source code (desktop) [tags: butter use-pretranspiled] - run with: x30.jar - homepage

Download Jar. Libraryless. Click here for Pure Java version (20266L/129K).

!7

static Set<S> tooComplicatedSnippets = lithashset(#1006654);

static JavaXHyperlinker hyperlinker;

p {
  hyperlinker = new JavaXHyperlinker;
  tb_mainServer_override = if0_const("https://code.botcompany.de:9898");
  pcall { // historic port used by show-snippet.php
    serveHttp(7777);
  }
}

html {
  try {
    ret html2(uri, params);
  } catch print e {
    ret stackTraceToString(e);
  }
}

sS html2(S uri, SS params) {
  print(+uri);
  uri = dropPrefix("/", uri);
  bool real = uri.startsWith("real/");
  if (real) uri = dropPrefix("real/", uri);
  S snippetID = #1007528;
  if (isSnippetID(uri)) snippetID = fsI(uri);
  
  if (contains(tooComplicatedSnippets, snippetID)) ret ""; //fail("too complicated");
  
  S code = loadSnippet(snippetID);
  
  S html = hyperlinker.codeToHTML(code, real);
  if (real) ret html;
  ret h3_title("Snippet " + snippetID) + hpre(html);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008705
Snippet name: Hyperlink+explain standard functions etc. in JavaX source [LIVE web bot]
Eternal ID of this version: #1008705/181
Text MD5: c0930cfa5b83894459c8198e3ec572d1
Transpilation MD5: 29d85c52ccc0514fb7d358971b7f0429
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-22 22:17:49
Source code size: 919 bytes / 38 lines
Pitched / IR pitched: No / No
Views / Downloads: 1274 / 38364
Version history: 180 change(s)
Referenced in: #1008710 - TinyBrain Server Bot [old]
#1030131 - JavaXHyperlinker - annotates JavaX sources in HTML. Also, COLORS!
#1030133 - Hyperlink+explain standard functions etc. in JavaX source [backup]