phptools-docs
phptools-docs copied to clipboard
Disabling format in file?
Is there a way to ignore a block of code that I don't format, as the Laravel Blade formatter extension does?
For example:
Disabling format in file To disable formatting in your file, you can use blade comments in the following format:
{{-- blade-formatter-disable --}} {{ $foo }} {{ $bar }} {{-- blade-formatter-enable --}}
To disable formatting on a specific line, you can use comment in the following format:
{{-- blade-formatter-disable-next-line --}} {{ $foo }}
To disable formatting for an entire file, put a {{-- blade-formatter-disable --}} comment at the beginning of the file:
{{-- blade-formatter-disable --}}
{{ $foo }}
No Format
Formant
Thanks.