omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    New feature request - code formatter

    Pythonista
    2
    4
    2666
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Avisual68
      Avisual68 last edited by

      Any chance of this in the next version, would be nice to reformat code when pasting into editor

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        Pasting code into the Pythonista editor often causes those pesky 'Unexpected indent' error messages. If this is the problem that you are seeing, you might check out the tabs to spaces utility at:

        http://omz-software.com/pythonista/forums/discussion/273/simple-utility-script-to-convert-tabs-to-spaces.

        If you put this in your Actions menu and run it while your pasted code is open in the Pythonista editor, it will often get rid of the 'Unexpected indent' errors. Not a full reformatter but it might get your code to run.

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          Also check out this cool tip... http://omz-software.com/pythonista/forums/discussion/507/tip-mixing-spaces-with-tabs

          1 Reply Last reply Reply Quote 0
          • Avisual68
            Avisual68 last edited by

            Thanks have added it to collection. second tip was realy helpful

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors