I work with nginx configuration files. They have a format that I have never met before: something like a mixture of .ini and JSON:

 user www www; ## Default: nobody worker_processes 5; ## Default: 1 error_log logs/error.log; pid logs/nginx.pid; worker_rlimit_nofile 8192; events { worker_connections 4096; ## Default: 1024 } 

I want to bind to these files a specific format in the development environment (PyCharm) in order to get syntax highlighting, autoformat and other buns.

Question: how is this format called? Does he have any specification?

Assumed that this is called - configuration file . But there is not a word about the blocks in curly braces.

  • Nginx has its own configuration file format. For formatting (align parentheses) you can use JavaScript formatters. - Vladimir Gamalyan

2 answers 2

So you can just take the ready plugin https://plugins.jetbrains.com/plugin/4415 . Syntax highlighting there

Configuration file syntax highlighting, auto-completion and inspections.

  • Yes, I found it, but for now I'm struggling with installation errors. ) - Nick Volynkin

Unfortunately, not called. The format of configs was made by nginx developers for nginx. SM: Similar question on EnSO