text = stringarray(0)
text += "char *help_funcs[] = {"
functions = import("functions.txt")
//replace functions, "\\", "\\\\"	//AA: commented, since it has no effect and produces a lot of output when executing ("trailing\")
replace functions, "\"", "\\\""
replace functions, "<code>", ""
replace functions, "<br>", ""
replace functions, "function_", "function "
replace functions, "procedure_", "procedure "
for i=1, nelements(functions) functions[i] = "\"" + functions[i] + "\","
text += functions
text += "\"\","
text += "\"\""
text += "}" + ";"
text += ""
text += "char *help_pg[] = {"
functions = import("procedures.txt")
//replace functions, "\\", "\\\\"	//AA: commented, since it has no effect and produces a lot of output when executing ("trailing\")
replace functions, "\"", "\\\""
replace functions, "<code>", ""
replace functions, "<br>", ""
replace functions, "function_", "function "
replace functions, "procedure_", "procedure "
for i=1, nelements(functions) functions[i] = "\"" + functions[i] + "\","
text += functions
text += "\"\","
text += "\"\""
text += "};"
text += ""
export "help.h", text
