MU Soapbox

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Muxify
    • Mustard

    Mush Formatter - New Version Released!

    MU Code
    1
    2
    499
    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.
    • Kumakun
      Kumakun last edited by

      What's going on everyone? Been a while since I've posted!
      Still writing mushcode?
      Still working with a single line of text?
      Wish there was a way to make your code human readable?

      Enter Mush-Formatter!

      The basic rules: Any line that has something in the first character will count as a new command. Indents matter!

      &cmd_awesome #123 =  
          @pemit %#=This command is awesome!!;
          @pemit %#=Another thing!
      

      will translate to:
      &cmd_awesome #123 = @pemit %#=This command is awesome!!; @pemit %#=Another thing!

      As an example, let's take a look at some of @Thenomain's pretty formatted code sample. Now, when we put this through the formatter we get... This!

      The interactive version of the formatter is available at format.ursamu.io

      The non-interactive 'fast' formatter is available for GET requests at format.ursamu.io/api?include=url/to/text.txt

      For more information visit the project repository: https://github.com/digibear-io/mush-format

      Thanks for looking! 🙂

      No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced.

      Kumakun 1 Reply Last reply Reply Quote 2
      • Kumakun
        Kumakun @Kumakun last edited by

        Another update! I've added some functionality to the GET request feature!

        Now you can pull from git repositories directly!
        format.ursamu.io/api?include=git:lcanady/archive-test

        Or! You can drill in even further:

        format.ursamu.io/api?include=git:lcanady/archive-test/code/file1.mush

        Next, I'll be working on going the other direction - compressed code to pretty code. The GUI is fun, but I have to admit - being able to shortcut right to the output has proven hella useful. 🙂

        Enjoy!

        No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post