AlSk Posted July 7, 2015 Share Posted July 7, 2015 (edited) Hi everyone,I am searching for a solution to style a hscript expression. I am looking for something like, http://jsbeautifier.org/ just for hscript. In dont't think there is something out there particularly for Hscript, but maybe someone knows a tool where i can set rules to format my code. In fact it would only need 3 rules:1. after every ( do a line break + tab2. ahead every ) do a line break + shiftTab3. after every , do a line breakSo for example you get from this: length(dopoption($DOPNET, $OBJID, "PointPosition", "velx"),dopoption($DOPNET, $OBJID, "PointPosition", "vely"), dopoption($DOPNET, $OBJID, "PointPosition", "velz")) - length(dopoption($DOPNET, $OBJID, "PointPosition", "oldvelx"), dopoption($DOPNET, $OBJID, "PointPosition", "oldvely"), dopoption($DOPNET, $OBJID, "PointPosition", "oldvelz")) something like that: length( dopoption( $DOPNET, $OBJID, "PointPosition", "velx" ), dopoption( $DOPNET, $OBJID, "PointPosition", "vely" ), dopoption( $DOPNET, $OBJID, "PointPosition", "velz" ) ) - length( dopoption( $DOPNET, $OBJID, "PointPosition", "oldvelx" ), dopoption( $DOPNET, $OBJID, "PointPosition", "oldvely" ), dopoption( $DOPNET, $OBJID, "PointPosition", "oldvelz" ) ) Edited July 7, 2015 by AlSk Quote Link to comment Share on other sites More sharing options...
Milan Posted July 8, 2015 Share Posted July 8, 2015 You should be able to add this to ATOM's beautify package ( https://atom.io/packages/atom-beautify ). I had a quick look at the code and should be fairly straightforward. Quote Link to comment Share on other sites More sharing options...
AlSk Posted July 9, 2015 Author Share Posted July 9, 2015 (edited) Thank you, I'll try it. Edited July 9, 2015 by AlSk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.