On 23/07/24 16:46, Tom Smyth wrote:
Folks,
I wondering had anyone tried to make a syntax highlighting for pf.conf syntax,
to help folks new to the pf.conf syntax in the editor of their choice...
I was thinking that this approach might be lower hanging fruit rather
than trying to write a rule editor in nsh (for now at least), and it
might be more generally useful for for the community or those in the
community who like syntax highlighting
i saw some pf.conf syntax highlighting for sublime text editor,
I was just wondering if any had done highlighting for vim, emacs
etc... ? or at least something I can get started with ...
emacs has a built-in `conf-mode' which, while not knowing the exact
syntax of any specific configuration file, usually does a decent job at
handling configuration files (these includes pf.conf, httpd.conf,
etc...). It's enabled by default for file that ends in *.conf (among
other things.)