1

How to highlight povray code with vim or ConTeXt.

I try with :

\usemodule[vim]

\definevimtyping [pov]  [syntax=povray]

I copy-paste povray code :

\startpov
 sphere { <0,0.2,0>, 1 texture{pigment{color Yellow filter .66 }
finish{phong .8}
}
   scale<1.5,1.5,1.5>  rotate<0,0,0>  translate<0,0.5,0>  
       }  // end of sphere ----------------------------------- 
\stoppov

Northing happened.

2
  • Could you provide a few more details, like a complete example and the output of the log file. What version of ConTeXt you are using, is write18 enabled, do you have vim installed on your system, and is there a vim syntax file for povray?
    – Aditya
    Mar 3, 2021 at 22:37
  • It seems that vim syntax for povray is called pov.
    – Aditya
    Mar 3, 2021 at 22:42

1 Answer 1

1

The vim syntax file for Pov-Ray is called pov. So, you need to change syntax=povray to syntax=pov. Here is a complete example:

\usemodule[vim]
\definevimtyping [pov]  [syntax=pov]

\starttext
\startpov
 sphere { <0,0.2,0>, 1 texture{pigment{color Yellow filter .66 }
finish{phong .8}
}
   scale<1.5,1.5,1.5>  rotate<0,0,0>  translate<0,0.5,0>  
       }  // end of sphere ----------------------------------- 
\stoppov
\stoptext

which gives

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .