|
3 months ago | |
---|---|---|
.gitattributes | 1 year ago | |
Comments.tmPreferences | 5 months ago | |
LICENSE | 1 year ago | |
Nftables.sublime-build | 1 year ago | |
Nftables.sublime-syntax | 3 months ago | |
README.md | 1 year ago | |
syntax_test_Nftables.nft | 3 months ago |
A Sublime Text 3 syntax definition for your nftables rules
nftables should now be the regular way of handling Netfilter rules, and I was surprised not to find any syntax definition for Sublime Text.
This project aims to provide a "basic" one, as long as a building procedure for GNU/Linux users (when the nft
binary is available for "dynamic" syntax checks).
This project has been inspired by the official nano syntax definition.
See the Scripting nftables Wiki page for external reference.
Package Control: Install Package
Nftables
Enter
and you're done !Package Control dedicated page here.
$HOME/.config/sublime-text-3/Packages/
or %AppData%\Sublime Text 3\Packages\
)$ git clone https://github.com/HorlogeSkynet/Nftables.git
Open your command palette and type in : Set Syntax: Nftables
Click on the bottom-right corner : Nftables
View > Syntax > Nftables
Open your command palette and type in : Build With: Nftables
Press CTRL + B
Tools > Build
No, but feel free to contribute.
Well, sorry to hear that. Grammar wasn't my favorite course at school.
I'd be pleased to review any issue or pull request.
It looks like such a tool does not exist (yet ?).
No, but I would advise you this blog post as a well-explained starting point, written by @tasn.
Of course, open the
Nftables.sublime-syntax
file, pressCTRL + Shift + B
and chooseBuild With: Syntax Tests
.