If you have a script you'd like to share or showcase, post it here. If it's long, you can post it at http://npppython.codepad.org/ which will syntax highlight it for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wrote this script to make reading .csv data in notepad++ easier after.
It's not meant to be an excel replacement or anything, just a visual aid.
a=[[]forxineditor.getLine(1).split(",")]defcsv_to_list(cont,l_num,tot_lines):cont=cont.split(",")forninrange(len(cont)):a[n].append(cont[n].replace("\r\n",""))editor.forEachLine(csv_to_list)aLens=[max([len(x) for x in a[y]])foryinrange(len(a))]defform_line(l_num):txt="".join([a[x][l_num].ljust(aLens[x]+1)forxinrange(len(aLens))])txt=txt+"\r\n"return(txt)notepad.new()forlinrange(len(a[0])-1):editor.addText(form_line(l))
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cool…. thanks for posting biomatchjdaily. Would you mind posting it in it's own thread, then people can find it easily - subject of CSV Formatting or something.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Welcome to Script Showcase
If you have a script you'd like to share or showcase, post it here. If it's long, you can post it at http://npppython.codepad.org/ which will syntax highlight it for you.
I wrote this script to make reading .csv data in notepad++ easier after.
It's not meant to be an excel replacement or anything, just a visual aid.
Cool…. thanks for posting biomatchjdaily. Would you mind posting it in it's own thread, then people can find it easily - subject of CSV Formatting or something.