How to stop auto-adjusting in HTML source and set tab width?

Discussion of general topics about Seamonkey
Post Reply
wavingdragon
Posts: 3
Joined: July 29th, 2009, 3:05 pm

How to stop auto-adjusting in HTML source and set tab width?

Post by wavingdragon »

Here are my 2 questions:

1. After opening an html file and then choosing "Edit Page" in the menu, the source code in the "<HTML> source" tab has all been auto-adjusted. All the spacings have been rearranged, all the tabs have been replaced with spaces, and SeaMonkey has even added a "!DOCTYPE" line at the top of the source. How do I stop all those auto-adjustment by SeaMonkey, in terms of both viewing and saving?

2. In the "<HTML> source" tab, one "tab" is 8-space wide. Is it possible to make it 4-space wide instead?
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: How to stop auto-adjusting in HTML source and set tab wi

Post by morat »

1.

Edit > Preferences > Composer > [check] Preserve original source formatting

i.e. set the editor.prettyprint pref to false

There aren't that many composer preferences in the about:config tab.

2.

The width of tab spacing is hard-coded for the compose window in Thunderbird.

Similar thread: http://forums.mozillazine.org/viewtopic ... #p12650573

http://searchfox.org/mozilla-esr60/sour ... zer.cpp#38
http://searchfox.org/comm-esr60/source/ ... pfl.cpp#19

I don't know if it's hard-coded in SeaMonkey as well.
wavingdragon
Posts: 3
Joined: July 29th, 2009, 3:05 pm

Re: How to stop auto-adjusting in HTML source and set tab wi

Post by wavingdragon »

Thanks, Morat, for the help!
Post Reply