46

I want to be able to have syntax highlighting in PHPStorm for Volt, Phalcon's template engine.

Is there a way to do so?

Nikolaos Dimopoulos
  • 11,495
  • 6
  • 39
  • 67

2 Answers2

115

In PHPStorm, click File -> Settings

On the left side of the options click Editor -> File Types

On the list that appears on the right, scroll down and select Twig

In the bottom panel, click the + button to add a new wildcard and add

*.volt

Click OK and then OK again.

Jabari
  • 5,359
  • 3
  • 26
  • 32
Nikolaos Dimopoulos
  • 11,495
  • 6
  • 39
  • 67
1

Right click on a .volt file in the project tab. Click on associate with a file type. Choose twig.

Hossein J
  • 1,019
  • 1
  • 15
  • 32