Syntax highlighting is so-so for .clp
files. vim, my favorite code editor,
detects these filetypes as jess, an unmaintained Rules Engine with a similar syntax to CLIPS.
Adding the jess.vim
file to ~/.vim/after/syntax/
and the default.vim
file
to ~/.vim/colors
in your Ubuntu system
will provide slightly better highlighting when editing CLIPS files
for the following:
expand$
variables in LHS&
(and) and|
(or) symbols in LHS-
and+
as characters in variable names- escape characters in double quoted strings
TRUE
andFALSE
are bolded and have a slightly brighter color