The WordPress coding standard doc says to use real tabs and not spaces for HTML (and PHP), but when I “view source” for my theme in the browser those tab characters result in really messy HTML (see screenshot: https://cloudup.com/csiKIoOQpCa ).
Is the only solution to use less indentation in the source code? If those tabs were replaced with spaces, the code, when viewing source, suddenly becomes far more readable (https://cloudup.com/ctifzTM2f8U).
I understand the reasoning behind keeping a standard, I’m just wondering if anyone else has come up against this problem and what discussion, if any, has been had about it. If someone can point me to existing discussion on this topic, that would be great.
- The topic ‘Tabs vs Spaces for Indentation in Theme HTML’ is closed to new replies.