Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Plugin Development
    4
    7
    1072
    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.
    • blueicehaller
      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.

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        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++.

        blueicehaller 1 Reply Last reply Reply Quote 2
        • blueicehaller
          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
          blueicehaller 1 Reply Last reply Reply Quote 0
          • blueicehaller
            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
            • blueicehaller
              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 Kilborn Michael Vincent 2 Replies Last reply Reply Quote 0
              • Alan Kilborn
                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 Vincent
                  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
                  Copyright © 2014 NodeBB Forums | Contributors