MozillaZine


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

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

Post Posted October 5th, 2021, 8:00 pm

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: 4842
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 6th, 2021, 7:17 am

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: viewtopic.php?p=12650573#p12650573

http://searchfox.org/mozilla-esr60/source/dom/base/nsPlainTextSerializer.cpp#38
http://searchfox.org/comm-esr60/source/mailnews/mime/src/mimetpfl.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

Post Posted October 23rd, 2021, 10:28 pm

Thanks, Morat, for the help!

Return to SeaMonkey General


Who is online

Users browsing this forum: No registered users and 1 guest