Bug 415671 - Add Syntax Highlighting for NFT (nftable)
Summary: Add Syntax Highlighting for NFT (nftable)
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-29 11:01 UTC by valerio pachera
Modified: 2025-07-13 22:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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