#include inherit LIB_DAEMON; mapping TermInfo; void create(){ TermInfo = ([ "RED" : "", "GREEN" : "", "BLUE" : "", "YELLOW" : "", "CYAN" : "", "MAGENTA" : "", "YELLOW" : "", "RESET": "", "BR" : "
", "P" : "

", "/P" : "

", ">" : ">", "HREF" : "", "I" : "", "/I" : "", "PRE" : "", "/PRE" : "", "STRONG" : "", "/STRONG" : "", "TABLE" : "", "/TABLE" : "
", "TR" : "", "/TR" : "", "TD" : "" , "/TD" : "" ]); } mixed cmd(string args){ string file = read_file(args); string *ret = explode(file,"\n"); file = implode(ret,"
"); file = terminal_colour(file+"%^RESET%^\n", TermInfo); file = "" + file + ""; write(file); return 1; } string GetHelp() { return "Syntax: html \n\n" "Outputs to the screen an htmlified version of the " "file specified."; }