Skip to content

nitrogl/kde-proverif-highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syntax Highlighting for ProVerif files for KDE editors

Syntax highlight support for the applied pi-calculus language of ProVerif in KDE editors (Kate, KWrite, Kile, ...).

Screenshot

An extract of the Needham-Schroeder protocol - code taken from the manual.

Language support

This highlighter follows the syntax parsed by ProVerif 2.04 and the subset from CryptoVerif that is currently compatible/understood by ProVerif.

Additionally, one can use the Objective Caml doc in the comments (that start with (**).

It currently does not support bound names in queries.

Instructions

General instructions

To use the syntax highlighting, place the file proverif.xml to

For local user $HOME/.local/share/org.kde.syntax-highlighting/syntax/

For Flatpak packages $HOME/.var/app/package-name/data/org.kde.syntax-highlighting/syntax/

For Snap packages $HOME/snap/package-name/current/.local/share/org.kde.syntax-highlighting/syntax/

On Windows® %USERPROFILE%\AppData\Local\org.kde.syntax-highlighting\syntax\

On macOS® $HOME/Library/Application Support/org.kde.syntax-highlighting/syntax/

Linux, no cloning

It might be easier to just download a copy of the file proverif.xml to your local directory without cloning the whole repository. If you have wget installed in your system, you can easily do

mkdir -p ~/.local/share/org.kde.syntax-highlighting/syntax/
cd ~/.local/share/org.kde.syntax-highlighting/syntax/
wget https://raw.githubusercontent.com/nitrogl/kde-proverif-highlight/main/proverif.xml

You may need to restart your KDE editors too see the changes. If you open a .pv or .pi file, it should automatically load the correct highlighting.

About

Syntax Highlighting for ProVerif files for KDE editors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published