Usage:register_in_script(File,CommentMark,Code)
Inserts Code in the script file File. Code is surrounded by special comments (starting with CommentMark), that allow identifying the inserted code later. If the File contained some inserted code, it is replaced.