Beautify/Format code
Posted: Fri Apr 02, 2004 3:55 pm
Hello everyone.
Does anyone know of a way to beautify/format the following code using a search/replace with a regular expression?
I'd like to format the code from this:
to this:
In other words, I'd like the different parts each line of the code block to line up vertically.
Thanks for any insight.
CJ
Does anyone know of a way to beautify/format the following code using a search/replace with a regular expression?
I'd like to format the code from this:
Code: Select all
set north [lindex $string_list 0]
set east [lindex $string_list 1]
set elevation [lindex $string_list 2]
set arsenic [lindex $string_list 3]
set sulph [lindex $string_list 4]
Code: Select all
set north [lindex $string_list 0]
set east [lindex $string_list 1]
set elevation [lindex $string_list 2]
set arsenic [lindex $string_list 3]
set sulph [lindex $string_list 4]
Thanks for any insight.
CJ