BPF Syntax Highlighting in GitHub Pages
GitHub Pages now have support for BPF syntax highlighting!
BPF highlighting is provided by the Rouge library since its version 3.5, but took some time to land in GitHub Pages.
The BPF lexer is so far very simple and lives at rouge/lexers/bpf.rb
.
Several syntactic constructions are not currently supported by the lexer (e.g., helper names after call instructions and hexa. codes from bpftool/objdump outputs).They now are!
Don’t hesitate to send pull requests for improvements!
Now you have no excuse to not write blog posts on BPF!