Quote:
Originally Posted by ufmale
I copied a html file from the internet to a file using vi editor. All the indentation seems to be out of order. Is there a way to indent them correctly? Can the same technique apply to java, c code files?
|
Not sure how good vi's indentation rules for HTML are, but
usually (in vim, at least) you can highlight the lot and
press =
If that doesn't quite cut it for HTML (I know it does for
C and Perl, for example) you could use tidy for those files.
Cheers,
Tink