Welcome Guest, Not a member yet? Register   Sign In
Spaces vs. tabs in source files
#8

(03-30-2015, 12:44 AM)Muzikant Wrote:
(03-27-2015, 06:57 AM)Narf Wrote: It very clearly says to use tabs instead of spaces: http://www.codeigniter.com/userguide3/ge...whitespace

Tab-width is irrelevant, it is your own preference - that's the whole purpose of using tabs instead of a number of spaces.

Yes, but... Look at the system/language/english/ftp_lang.php, which is one of the core files. Aligning is made by tabs with 8 spaces equivalent. If you will have setted 4 spaces equivalent, it will brake the aligning. That is why I started this topic. Now look at the czech translation or the polish translation of the same file. Spaces are used. So there is an inconsistency. If there is no guidelines for cases like this, I have no problem with it. I was just curious. :-)

Alignment != indentation

Yes, in the past different people have aligned using tabs (and with their own tab-width), but we've never had an official policy about that and it shouldn't be done anymore - it's wrong. At present, I'm rejecting any changes that do alignment with tabs and prefer no alignment at all.
Reply


Messages In This Thread
Spaces vs. tabs in source files - by Muzikant - 03-27-2015, 04:15 AM
RE: Spaces vs. tabs in source files - by ircdirk - 03-27-2015, 05:31 AM
RE: Spaces vs. tabs in source files - by Muzikant - 03-27-2015, 06:00 AM
RE: Spaces vs. tabs in source files - by Narf - 03-27-2015, 06:57 AM
RE: Spaces vs. tabs in source files - by mwhitney - 03-27-2015, 07:30 AM
RE: Spaces vs. tabs in source files - by louisl - 03-29-2015, 07:31 AM
RE: Spaces vs. tabs in source files - by Muzikant - 03-30-2015, 12:44 AM
RE: Spaces vs. tabs in source files - by Narf - 03-30-2015, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB