Welcome to Geeklog Tuesday, August 04 2020 @ 12:47 pm EDT

Geeklog Forums

Are 'Tabs' allowed in theme files?


Status: offline

inspiremin

Forum User
Regular Poster
Registered: 07/01/04
Posts: 111
blank
I know you can't use tabs to indent PHP files. Can they be used in theme files?
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Quote by inspiremin: I know you can't use tabs to indent PHP files.

Of course you can.

Quote by inspiremin: Can they be used in theme files?

Sure.

bye, Dirk
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 07/01/04
Posts: 111
MY BAD!! Oops!

I thought tabs would screw up PHP code in some instances. ANYWAY!

I guess I will make life easier on myself and use tabs instead of spacing over.

Thanks for the lesson!
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 16/07/02
Posts: 1232
Location:Canada
The reason tabs are often not used or not recommended is that they are viewed differently or treated differently by various editors and viewers. Some tabs may be 4 spaces and other 8 spaces or more for example.

I personally now convert all tabs to 4 spaces when I'm working on a php or html file.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 12/01/03
Posts: 445
*sigh* and I reconvert them to tabs when I do "reverse engeniering" on your files Smile

geKow
 Quote

All times are EDT. The time is now 12:47 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content