Monday, November 08, 2010 at 12:06 AM.

system.verbs.builtins.webBrowser.utilities.viewGlossary

on viewGlossary () {
	local (f = webBrowser.getScriptPrefsFolder () + "user.html.glossary.html");
	local (adr = @user.html.glossary, s, i);
	s = "<html><head><title>" + "Glossary" + "</title>";
	s =  s + "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#880000\" vlink=\"#000099\">";
	s = s + "<center><h1>" + "user.html.glossary" + "</h1></center>";
	s = s + "<p>" + webBrowser.utilities.getGlossaryHTML ();
	bundle { <<do sysop info
		local (sysopinfo = "<p>");
		sysopinfo = sysopinfo + "<b>Folder:</b> " + file.folderFromPath (f) +  "<br>";
		sysopinfo = sysopinfo + "<b>File:</b> " + file.fileFromPath (f) +  "<br>";
		sysopinfo = sysopinfo + "<b>Sysop:</b> " + user.prefs.name +  ", " + user.prefs.mailaddress + "<br>";
		sysopinfo = sysopinfo + "<b>Date:</b> " + clock.now () +  "<br>";
		s = s + "<code>" + sysopinfo + "</code>"};
	s = s + "</body></html>";
	file.writeWholeFile (f, s, 'TEXT', user.webBrowser.currentid, clock.now ());
	webBrowser.openURL (html.getfileurl (f))}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.