Skip to content

Rixafy/LatteSupport

Repository files navigation

Latte Support for PhpStorm

Fork of the original free plugin, provides decent support for Latte templates.

example

Notice

This plugin is in maintenance mode only (but feel free to contribute new features), errors and performance issues will still be fixed and updates will be on time, if you are looking for a plugin with more features, check out paid Latte Pro plugin. This fork has been created as another free plugin, since code completion feature was removed from the original free plugin.

If you have any problems with the plugin, create an issue or use #latte channel at the Nette Discord.

Installation

Settings → Plugins → Browse repositories → Find "Latte Support" → Install Plugin → Apply

Installation from .jar file

Download instrumented.jar file from latest release or latest successful GitHub Actions build

Supported Features

  • Syntax highlighting and code completion for PHP in Latte files
  • Type support and reference to classes and methods in Latte files (see {templateType})
  • Refactoring support for Latte files (when changing class name, method name, etc.)
  • Live analysis of Latte files (unused variables, syntax errors, etc.)

Building

$ ./gradlew build -x test

Testing in dummy IDE

$ ./gradlew runide