Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8582947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:25:16+00:00 2026-06-11T21:25:16+00:00

I keep running across a problem where source code that uses tabs to line

  • 0

I keep running across a problem where source code that uses tabs to line up key/value assignments is displayed differently in different editors.

For instance, a file on Github in both the highlighted and raw versions shows the $labels array at line 55 with mis-aligned spacing. It also looks that way in Notepad.

But, that same file, copied into Aptana or Notepad++ will display the values lined up perfectly.

Why does that happen, and is it possible to create the file in such a way that it will be displayed correctly across all editors?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:25:17+00:00Added an answer on June 11, 2026 at 9:25 pm

    Depending on your settings in each editor, they will each use a different number of spaces for a tab.

    Some use 2, some use 3, some use 4, and some use 6. You can see by highlighting one of the tabs in github, the tab takes up 8 spaces.

    This should be adjustable in the editor.

    If you create a file in an editor that uses a particular number of spaces, and view it in an editor that uses a different number of spaces, things will look different.

    There has always been a debate about whether to use spaces or tabs for indentation. It’s a personal preference thing, but using spaces rather than tabs will prevent this issue.

    You should be able to set your editor to use spaces instead of tabs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep on running across code that uses double-checked locking, and I'm still confused
I've been running across a lot of Perl code that breaks long strings up
I keep running across errors when trying to compile code which utilizes the boost::filesystem
I keep running across (someone else's) code like this Case When (variable & (2|4|8|16)>0)
I keep running into the following problem: (System.Console.ReadLine ()).Split [|'('; ')'|] |> Array.filter (fun
I keep running into this design problem, and I'm not happy with my solution
While trying to brush up my Ruby skills I keep running across this case
I keep running across references to MacRuby and was wondering if any of you
I keep running across this loading image http://georgia.ubuntuforums.com/images/misc/lightbox_progress.gif which seems to have entered into
I've done a little research on hash tables, and I keep running across the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.