[runmode addon] Define text/plain mode in standalone script.