Twig is a template engine for the PHP programming language. Its syntax originates from Jinja and Django templates. Symfony PHP framework comes with a bundled support for Twig as its default template engine since version 2. One of the goals of Twig is to be as fast as possible. The overhead compared to regular PHP code was reduced to the very minimum.


Twig plugin is only available in CodeLobster IDE Professional.

CodeLobster integrates with Twig so you can use it from inside the IDE. Twig support includes the following features:

Twig syntax highlighting

CodeLobster IDE supports highlighting for Twig syntax. For .twig files Twig parsing mode is applied automatically.

Twig IntelliSense

CodeLobster IDE provides IntelliSense for Twig, which helps you write code more quickly and efficiently. IntelliSense saves you time by putting what you’re most likely to use at the top of your completion list. IntelliSense suggestion box includes Twig keywords, filters, functions, and variables assigned from PHP.

The suggestion list of the automatic completion appears as soon as you start typing. Pressing Tab or Enter will insert the selected item. You can trigger IntelliSense in the Editor window by pressing Ctrl + Space or using Edit | IntelliSense | Autocomplete main menu item.

Twig context and dynamic help

The Dynamic Help window allows opening help topics automatically for an element when the pointer is placed on. Twig plugin uses the for a quick search for relevant information.

To get help topics using Dynamic Help:

  • Place the pointer on the target element and press the F1 button.

  • Select Help | Context Help main menu item.

  • Click the topic item in the Dynamic Help window.


    To get Dynamic Help to appear, choose View | Panels | Dynamic Help main menu item.