Anybody know how to get rid of 8 space tabs showing up in browser source views?

Discussion in 'HTML & Website Design' started by carlos123, Nov 8, 2009.

  1. #1
    I have bumped into this problem before and it is on the verge of driving me bonkers again.

    Every browser opens up a source view of the underlying HTML using 8 spaces per tab!!!

    Anybody know how to get rid of this stupid, stupid, stupid, way of showing tabs with 8 spaces??

    When I view source I want to see tabs set to 3 spaces. NOT 8!

    I keep visiting this issue once in a while and have never been able to find a way to set the tabs down to 3.

    Google is worthless regarding this problem. It keeps on giving me pages on how to work with browser tabs across the top for tabbed browsing NOT the spacing of tabs in source code view.

    Any suggestions or input would be appreciated. For the life of me I can't figure out what caused all these browsers to render tabs as 8 spaces when viewing source.

    Carlos
     
    carlos123, Nov 8, 2009 IP
  2. Typo Tat

    Typo Tat Peon

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I really don't think there is a native way.

    However, if you're willing, you can tackle the problem differently. Set up your browser to open the "view source" option in the text editor of your choice. Then you can define the tabulation to whatever it is you favor.
     
    Typo Tat, Nov 9, 2009 IP
  3. carlos123

    carlos123 Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks but that's not as nearly convenient as just viewing the source code in the browser.

    Sometimes I like to just view source and refresh the source while making changes to source code. An editor can't really do that (at least none of the one's I have looked at under Linux can) since it does not have an embedded server in it.

    There is no substitute for viewing source in the browser itself.

    I just can't for the life of me understand how it is that just about all browsers view source using 8 spaces per tab. I mean who in their right mind like to look at source code with 8 spaces per tabf??! I suppose one could get used to it but to me such spacing makes it really difficult for me to quickly follow the flow of the code not to mention that if the code is nested deep enough it just disappears off the right edge of my browser window.

    Oh well...I guess there is no solution for this and I must resort to various shenanigans and work arounds to get around this ridiculously annoying quirk.

    Thanks anyway.

    Carlos
     
    carlos123, Nov 9, 2009 IP