vscode-blade-formatter icon indicating copy to clipboard operation
vscode-blade-formatter copied to clipboard

[Bug]: After the installation, blade files lose syntax highlight!

Open trollfalgar opened this issue 1 year ago • 2 comments

Description

The formatting is working. But some conflict made blade files lose syntax highlight!

codede

Expected Behavior

Not lose syntax highlight!

Actual Behavior

Lose syntax highlight!

Additional Context

Version: v0.24.1 SO: Windows (WSL)

trollfalgar avatar Feb 08 '24 20:02 trollfalgar

This extension does not have syntax highlight feature. Please try using Laravel Blade Snippet for Syntax highlighting.

shufo avatar Feb 10 '24 07:02 shufo

This extension does not have syntax highlight feature. Please try using Laravel Blade Snippet for Syntax highlighting.

I know it doesn't have. But when I install it, blade files lose syntax highlight. Some conflict must be happening. I'll investigate.

trollfalgar avatar Feb 11 '24 18:02 trollfalgar

Related issue: https://github.com/shufo/vscode-blade-formatter/issues/56#issuecomment-1662981245

There are multiple highlight plugins for blade. I'd recommend to use only Laravel Blade Snippet cause it's confirmed working with this extension.

shufo avatar Feb 25 '24 21:02 shufo

This extension does not have syntax highlight feature. Please try using Laravel Blade Snippet for Syntax highlighting.

I had the same issue with syntax highlighting. Laravel Blade Snippet solved it!

In summary, you should install both Laravel Blade Formatter and Laravel Blade Snippet extensions to get formatting and syntax highlighting.

jkvithanage avatar Mar 19 '24 22:03 jkvithanage

I ran into the same issue as well after installing the extension, all the text went to "white".

The noticeable difference was that it updates the file's Language Mode from PHP -> Blade. In the short term, I can manually change the Language Mode by clicking the bottom status bar.

It does kinda make sense that the extension is setting it up this way. I was just thrown off when it "poof" went away without warning. Perhaps add a warning to the install documentation.

   vscode.languages.registerDocumentFormattingEditProvider("blade", ...

Reproduce

  1. Install the extension
    • No syntax highlighting; language mode: PHP
  2. Disable the extension
    • Highlighting comes back; language mode: Blade
  3. Reenable the extension
    • No syntax highlighting again; language mode: PHP

Installed

image

Disabled/Uninstalled

image

DamianSuess avatar Apr 18 '24 20:04 DamianSuess