Reputation: 71
So I wrote a program in python using NotePad++ in Windows, but then when I opened the file in Mac computer using TextWrangler or any text editor in it and after compiling it, there was an error message regarding indentation. How can I easily fix this?
Upvotes: 0
Views: 183
Reputation: 1973
Here is something to do with your file via Notepad++:
Edit -> Blank Operations -> TAB to Space
If this won't help (and most likely it won't) you will need to check indents manually. I can suggest View -> Show Symbol -> Show Indent Guide
for convenience.
It is a good and safe style to use only spaces. Not to face this problem in your future projects configure Notepad++: Settings -> Tab Settings -> Replace by space
. You will still be able to use tabs, but they will be changed to defined number of spaces (4 for me). Hope this helps.
Upvotes: 1