Welcome! Log In Create A New Profile

Advanced

Re: Pretty printer for the Nginx config?

Dustin Oprea
May 19, 2014 07:44PM
On Mon, May 19, 2014 at 7:37 PM, Lord Nynex <lordnynex@gmail.com> wrote:

> 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.
>
> https://gist.github.com/lordnynex/1a568e54b5d1af38f549
>
> 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.
>
> 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.
>
>
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.


>
> On Mon, May 19, 2014 at 4:17 PM, Dustin Oprea <myselfasunder@gmail.com>wrote:
>
>> On Mon, May 19, 2014 at 7:12 PM, Lyle <webmaster@cosmicperl.com> wrote:
>>
>>> It's kind of along the right lines, but I need to keep comments, etc.
>>> Just have consistent whitespace more than anything else.
>>>
>>>
>> You might write your own and make it available.
>>
>>
>>
>> Dustin
>>
>>
>>
>>>
>>> Lyle
>>>
>>>
>>> On 19/05/2014 19:59, Kurt Cancemi wrote:
>>>
>>> Hello,
>>>
>>> Would thishttps://github.com/lovette/nginx-tools/tree/master/nginx-minify-confsuit your needs? And the nginx configuration files are written in there own
>>> language/syntax.
>>>
>>>
>>> On Mon, May 19, 2014 at 2:49 PM, Lyle <webmaster@cosmicperl.com> wrote:
>>>
>>>> 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.
>>>>
>>>>
>>>> Lyle
>>>>
>>>>
>>>> _______________________________________________
>>>> nginx mailing list
>>>> nginx@nginx.org
>>>> http://mailman.nginx.org/mailman/listinfo/nginx
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> nginx mailing listnginx@nginx.orghttp://mailman.nginx.org/mailman/listinfo/nginx
>>>
>>>
>>>
>>> _______________________________________________
>>> nginx mailing list
>>> nginx@nginx.org
>>> http://mailman.nginx.org/mailman/listinfo/nginx
>>>
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Pretty printer for the Nginx config?

Lyle May 19, 2014 02:52PM

Re: Pretty printer for the Nginx config?

x64architecture May 19, 2014 03:00PM

Re: Pretty printer for the Nginx config?

Lyle May 19, 2014 07:14PM

Re: Pretty printer for the Nginx config?

Dustin Oprea May 19, 2014 07:20PM

Re: Pretty printer for the Nginx config?

Lord Nynex May 19, 2014 07:38PM

Re: Pretty printer for the Nginx config?

Dustin Oprea May 19, 2014 07:44PM

Re: Pretty printer for the Nginx config?

pcfreak30 September 10, 2015 10:33AM

Re: Pretty printer for the Nginx config?

vasilevich August 27, 2016 09:14AM

Re: Pretty printer for the Nginx config?

vasilevich August 27, 2016 05:31PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready