Block Reformatting is a free-format source code feature that allows the user to quickly reformat the current line, selected blocks of code, or the entire document.
Reformatting is done by optionally highlighting a section of code, then choosing the Edit > Advanced > Reformat Selection menu option. You may select Format Document instead of Format Selection, and the entire document will be reformatted regardless of selection area.
If any portion of a line is highlighted, the feature works on the entire line. If there is no highlighted code, the single line where the cursor resides will be reformatted.
Formatting can be configured in Tools > Options > Text Editor > Lahey Fortran > Formatting :