extract code, text as list