Prolog support for Vim users

后端 未结 3 1111
悲&欢浪女
悲&欢浪女 2020-12-31 10:11

I am starting with Prolog programming using XSB.

What syntax highlighting script or plugin for vim editor would you suggest for (XSB) Prolog ?

3条回答
  •  误落风尘
    2020-12-31 10:38

    The Vim support for Logtalk is an alternative for syntax coloring of Prolog files. Given that Logtalk extends Prolog, you will get nice syntax coloring for official and de facto standard Prolog features. The latest version is available here:

    https://github.com/LogtalkDotOrg/logtalk3/tree/master/coding/vim

    You will need to configure Vim, however, to use the Logtalk syntax highlighter support for the Prolog files (basically to recognize the file extensions that you're using for Prolog; e.g. XSB, by default, prefers .P). Also do try different Vim themes. Some of them are more pleasant than others.

提交回复
热议问题