!7 sclass ShowStandardFunction extends DynScp { S function, text; transient SingleComponentPanel scp; void update { S s = dm_getInterestingString(); if (isIdentifier(s)) { S snippetID = textOfStandardFunction(s); if (snippetID == null) ret; function = s; text = loadSnippet(snippetID); setModuleName(s + " [Standard Function]"); setModuleToolTip(snippetID); updateVis(); } } void updateVis { if (scp != null) scp.setComponent(scrollableJavaxSyntaxTextAreaOrNull(text)); } }