On Thu, 5 Apr 2012 05:59:35 -0700 Aleksey Tsalolikhin <atsaloli.t...@gmail.com> wrote:
AT> Hi. Is there a tidy or pretty-print program for CFEngine 3? AT> I am just looking for something to make sure there is uniform AT> indentation style in my examples, I've got like 200 of them by now and AT> I don't want to correct them by hand. AT> Just curious if anybody's made something like this for CFEngine 3 already. I've used the following in a hurry, indenting according to my `cfengine3-mode' settings in Emacs: emacs --batch FILE.cf --eval '(cfengine3-mode) (indent-region (point-min) (point-max) nil)' --eval '(write-region (point-min) (point-max) "FILE2.cf")' You can probably automate that pretty easily :) Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine