<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 19, 2014 at 7:37 PM, Lord Nynex <span dir="ltr"><<a href="mailto:lordnynex@gmail.com" target="_blank">lordnynex@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I do something similar to this in some backend config management code I wrote awhile back. I've created a gist with some code snippets to help understand how I'm reading/writing the config. <div>
<br>
</div><div><a href="https://gist.github.com/lordnynex/1a568e54b5d1af38f549" target="_blank">https://gist.github.com/lordnynex/1a568e54b5d1af38f549</a></div><div><br></div><div>Obviously this is not what you're looking for, and pretty printing feels less pretty when your code is formatting it, but this sufficiently meets your criteria with a bit of work. <br>
<div><br></div><div>Side note, I am not the original author of the grammar. I'd love to give him credit, but it was so long ago I can't find the original. </div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br></div></div></div></blockquote><div><br></div><div>That's great, @LordNynex (I'm not the OP)... Though I have to admit that memories of my days at a PERL-based transaction-processor came screeching back when I saw the code.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">
On Mon, May 19, 2014 at 4:17 PM, Dustin Oprea <span dir="ltr"><<a href="mailto:myselfasunder@gmail.com" target="_blank">myselfasunder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div class="gmail_extra">On Mon, May 19, 2014 at 7:12 PM, Lyle <span dir="ltr"><<a href="mailto:webmaster@cosmicperl.com" target="_blank">webmaster@cosmicperl.com</a>></span> wrote:<br></div>
</div><div class="gmail_extra">
<div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#3333FF" bgcolor="#FFFFFF">
<div>It's kind of along the right lines, but
I need to keep comments, etc. Just have consistent whitespace more
than anything else.<span><font color="#888888"><br>
<br></font></span></div></div></blockquote><div><br></div></div><div>You might write your own and make it available.</div><span><font color="#888888"><div><br></div><div><br></div><div><br></div><div>
Dustin</div></font></span><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#3333FF" bgcolor="#FFFFFF"><div><span><font color="#888888">
<br>
Lyle</font></span><div><div><br>
<br>
On 19/05/2014 19:59, Kurt Cancemi wrote:<br>
</div></div></div><div><div>
<blockquote type="cite">
<div dir="ltr">Hello,<br>
<br>
Would <a href="https://github.com/lovette/nginx-tools/tree/master/nginx-minify-conf" target="_blank">this</a>
suit your needs? And the nginx configuration files are written
in there own language/syntax.
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">On Mon, May 19, 2014 at 2:49 PM, Lyle
<span dir="ltr"><<a href="mailto:webmaster@cosmicperl.com" target="_blank">webmaster@cosmicperl.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#3333FF" bgcolor="#FFFFFF"> Is there a pretty
printer for this file? It doesn't seem to be in any
particular language. I tried a JS beautifier but that
broke things.<span><font color="#888888"><br>
<br>
<br>
Lyle<br>
<br>
</font></span></div>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
nginx mailing list
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div></div><br></div></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div></div>