PDA

View Full Version : Emacs won't indent lines with html files


tonytiger
04-19-2005, 10:31 PM
Hi. I'm using Emacs as my html editor. When writing for example Fortran code Emacs indents lines nicely. With html files it doesn't.
How can I make Emacs to indent also these files? If it matters I'm using Linux.

Thank you.

Tony

chilipie
04-20-2005, 06:41 AM
Hmm, never used Emacs... Are there any help files you could take a look at?

tonytiger
04-20-2005, 11:51 AM
There is a faq built in Emacs. However it seems that I there isn't module for html files. Therefore I should find some extra module.
Actually I found html-helper-mode module, but couldn't get it to work. It loads the module, but it doesn't work right - it doesn't indent lines or highlight tags what so ever.

Tony

bcarl314
04-20-2005, 03:44 PM
Are you sure the HTML is using tabs and not spaces? Some editors (such as DW) use spaces, which screw up other text editors which expect tabs. I'm not going to get into the whole tab vs. space debate, but I'm going to suggest that that may be the problem.

tonytiger
04-20-2005, 04:58 PM
The html-module I tried should've used both according to instructions. The module probably works but there is something fishy about the installation or using it.

Tony