Run npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss
in your terminal
Create a .prettierrc
file with the following content
{
"singleQuote": true,
"printWidth": 140,
<?php | |
class LocalValetDriver extends LaravelValetDriver | |
{ | |
public function frontControllerPath($sitePath, $siteName, $uri) | |
{ | |
if ($this->isActualFile($staticPath = $this->getStaticPath($sitePath))) { | |
return $staticPath; | |
} |
If any PHPStorm users want better syntax coloring for Antlers I figured out a better way.
Install Handlebars/Mustache plugin and enable the checkbox for “Open HTML files as Handlebars/Mustache” under Languages & Frameworks > JavaScript > Templates. Not perfect but much, much better!
This makes it even better. Disable Inspection and Syntax for Handlebars by click on Hector icon and changing the Highlighting Level for Handlebars to "None". Now no inspection errors!
Enjoy Statamic Antlers inside .html files in PHPStorm.
cd /Library/Preferences
sudo rm com.sophos.sav.plist
cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove