Community
    • Login

    Is there an plugin which is able to do pretty print for shell/bash?

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    7 Posts 4 Posters 7.3k Views
    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.
    • blueicehallerB
      blueicehaller
      last edited by blueicehaller

      Hi,
      I would like to know if is there an plugins which is able to do pretty print for shell/bash?

      I have the 64-bit x64 Version installed.

      The following plugins are able to do it for these languages:

      • JSON
        • JSON Viewer
        • JSTool
      • XML
        • XML Tools

      Do you know further plugins?

      Thank you in advance.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @blueicehaller
        last edited by

        @blueicehaller ,

        I do not know of such a plugin directly.

        However, as a workaround: using the NppExec plugin, you can call any external pretty-print program and have it filter the contents of the active Notepad++ file through that pretty-print and back into Notepad++. @Michael-Vincent shares an example script that does it for C, HTML, Perl, and Python in this post. So if you know of an external command-line utility that pretty-prints shell/bash, then you can use it in conjunction with the NppExec plugin to pretty-print inside of Notepad++.

        blueicehallerB 1 Reply Last reply Reply Quote 2
        • blueicehallerB
          blueicehaller @PeterJones
          last edited by

          @peterjones

          I did not use them yet:

          • https://github.com/mvdan/sh
            • https://github.com/mvdan/sh#shfmt
            • https://github.com/mvdan/sh#related-projects
          • Eclipse IDE
            • https://stackoverflow.com/questions/15655126/how-to-auto-format-code-in-eclipse
          • https://stackoverflow.com/questions/3987382/pretty-print-for-shell-script
          blueicehallerB 1 Reply Last reply Reply Quote 0
          • blueicehallerB
            blueicehaller @blueicehaller
            last edited by blueicehaller

            • Eclipse IDE
              • Eclipse Marketplace
                • To be able to open .bash files I need to install Shell Wax first
                • Then I tried out Bash Editor
            1 Reply Last reply Reply Quote 0
            • blueicehallerB
              blueicehaller
              last edited by blueicehaller

              In the Eclipse IDE preferences you can optionally activate Bash Editor to execute Beautysh as save action.
              To my understanding this requires Linux.

              Maybe it runs in Cygwin or MinGW?

              Alan KilbornA Michael VincentM 2 Replies Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @blueicehaller
                last edited by

                @blueicehaller said in Is there an plugin which is able to do pretty print for shell/bash?:

                In the Eclipse IDE preferences you can optionally activate Bash Editor to execute Beautysh as save action.
                To my understanding this requires Linux.
                Maybe it runs in Cygwin or MinGW?

                This is not on-topic for a question on a Notepad++ forum. Please find a more-appropriate forum in which to pursue this.

                1 Reply Last reply Reply Quote 0
                • Michael VincentM
                  Michael Vincent @blueicehaller
                  last edited by

                  @blueicehaller said in Is there an plugin which is able to do pretty print for shell/bash?:

                  To my understanding this requires Linux.

                  Why? It seems to be written in Python.

                  Cheers.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors