This is a quick script to make reading through CSVs in notepad++ easier.

I often just need to quickly look down for a value, and opening Excel or OOCalc is time consuming.

a = [[] for x in editor.getLine(1).split(",")] def csv_to_list(cont, l_num, tot_lines): cont = cont.split(",") for n in range(len(cont)): a[n].append(cont[n].replace("\r\n", "")) editor.forEachLine(csv_to_list) aLens = [max([len(x) for x in a[y]]) for y in range(len(a))] def form_line(l_num): txt = "".join([a[x][l_num].ljust(aLens[x]+1) for x in range(len(aLens))]) txt = txt + "\r\n" return(txt) notepad.new() for l in range(len(a[0])-1): editor.addText(form_line(l))