Bug 415671

Summary: Add Syntax Highlighting for NFT (nftable)
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: valerio pachera <sirio81>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: christoph
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description valerio pachera 2019-12-29 11:01:13 UTC
Hi, I think it would be great to have Syntax Highlighting for nft scripts on kate.
https://wiki.nftables.org/wiki-nftables/index.php/Scripting

As of now nano and vim supports it but I'd really appreciate to have it on kate.
https://wiki.nftables.org/wiki-nftables/index.php/Adoption

What do you think about it?

Thank you.
Comment 1 Dominik Haumann 2019-12-29 11:13:19 UTC
Could you provide one? We cannot provide the highlighting for 300+ languages ourselves.
Comment 2 Christoph Cullmann 2022-08-23 21:14:23 UTC
Hi,

as long as nobody contributes a highlighting, nothing will happen.

We have good documentation on

https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/README.md

to get somebody started. Beside this, one can always reach out on the channels described on

https://kate-editor.org/support/
Comment 3 Jonathan Poelen 2025-07-13 22:56:02 UTC
Git commit de378ad828658baeb6f4a8ffbe075b3e566ef4cc by Jonathan Poelen.
Committed on 13/07/2025 at 22:24.
Pushed by cullmann into branch 'master'.

add NFTables syntax

A  +134  -0    autotests/folding/highlight.nft.fold
A  +141  -0    autotests/html/highlight.nft.dark.html
A  +141  -0    autotests/html/highlight.nft.html
A  +134  -0    autotests/input/highlight.nft
A  +134  -0    autotests/reference/highlight.nft.ref
A  +713  -0    data/syntax/nftables.xml

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/de378ad828658baeb6f4a8ffbe075b3e566ef4cc