Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure how to align array properly #54

Open
isimmons opened this issue Jul 25, 2015 · 2 comments
Open

Not sure how to align array properly #54

isimmons opened this issue Jul 25, 2015 · 2 comments

Comments

@isimmons
Copy link

isimmons commented Jul 25, 2015

When trying to align something like

protected $countries = [
      "Western Sahara"                               => "eh",
      "Yemen"                                        => "ye",
      "Serbia"                                       => "yu",
      "Zambia"                                       => "zm",
      "Zimbabwe"                                     => "zw"
];

I"m trying to get it to line up based on the "=>" with both right and left columns left justified and right justified and the "=>" lining up like this

protected $countries = [
      "Western Sahara"    =>    "eh",
      "Yemen"                   =>     "ye",
      "Serbia"                    =>     "yu",
      "Zambia"                  =>     "zm",
      "Zimbabwe"             =>     "zw"
];

But it seems I can only justify either left or right column and not line up the "=>"


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@isimmons
Copy link
Author

Well I can't even get it to align when I paste it into github.

This is what I'm trying to achieve.

countryarray

@tylermumford
Copy link

Based on your screenshot, it looks like you're using a non-monospace font in Sublime. For all intents and purposes, your code will never look perfectly aligned unless you view it with a monospace font, such as Source Code Pro (Sublime's default, I believe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants