Robert,
In my opinion, not using tabs is a good step for looking the same in different editors. You might double check that there aren't tabs by putting it into an editor that can show if it's a tab or not, or finding and replacing the tabs.
Another step would be to use the same "fixed width" (meaning, for example, the "i" is the same width as "M") font in all of your editors. It looks to me like you have a variable width font in your examples, so the font looks great, but the letters don't line up vertically.
I use "Courier New" in all my editors and UNIX terminals and I don't use tabs. I think the font is kind of boring, but it's the best looking fixed width font as far as I can find and my code looks the same in all my editors. Other examples of fixed width fonts are Courier and FixedSys.
Try it out on a small example and see if it works!
Mike