The syntax highlighting for P4 is available for VIM, EMACS and Sublime Text 2/3.
You can install the p4-syntax-highlighter package in SublimeText from the package control.
- For EMACS:
- Copy the P4.el file to the appropriate directory of EMACS on your system.
- For VIM 3 methods are available.
- Copy both "ftdetect" & "syntax" directory inside "~/.vim/" on your system.
- To use with Vundle plug-in manager, add the following line to your bundle configuration file:
Bundle 'c3m3gyanesh/p4-syntax-highlighter-collection', {'rtp': 'vim'}
. - Use the install script:
curl -o- -L https://raw.githubusercontent.com/c3m3gyanesh/p4-syntax-highlighter-collection/master/vim/install.sh | bash
.
- VIM syntax highlighting supports both P4_14 and P4_16. Either format can
be disabled by adding one of the following to your
.vimrc
or.gvimrc
file:let p4_no_p4_14 = 1 " Disables P4_14 syntax highlighting let p4_no_p4_16 = 1 " Disables P4_16 syntax highlighting
- To contribute to the syntax highlighter for VIM and EMACS, please fork this current repo and update the corresponding files.
- To contribute to the syntax highlighter for Sublime Text editor, please fork the "https://github.com/c3m3gyanesh/p4-syntax-highlighter.git" project and make your changes.
- The Syntax file for VIM and EMACS were created by the following developers. I found them in the mailing list of P4.
- EMACS - Vladimir Gurevich
- VIM - Antonin Bas