!7 sclass ShowStandardFunction extends DynSCP { S function, text; void update { S s = dm_getInterestingString(); if (isIdentifier(s)) { S snippetID = lookupStandardFunction(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)); } }