Coder Social home page Coder Social logo

Comments (7)

Medalink avatar Medalink commented on May 23, 2024

The syntax looks for *.blade.php files and if it matches it auto selects Blade. Check to make sure Blade is in your Syntax definitions and that it works.

What version of Sublime are you using?

from laravel-blade.

Medalink avatar Medalink commented on May 23, 2024

Did a major update, if the problem still persists please open another issues.

Closing.

from laravel-blade.

tommymarshall avatar tommymarshall commented on May 23, 2024

Looks like it defaults back to PHP mode when the file is saved. But perhaps this is due to PHP's identifier and not Blades.

from laravel-blade.

thomasflad avatar thomasflad commented on May 23, 2024

Same issue here. Is there a solution for this?

from laravel-blade.

tommymarshall avatar tommymarshall commented on May 23, 2024

Figured out what was going on. You have to turn off 'Detect Syntax' package, and that fixed the problem.

from laravel-blade.

bstrahija avatar bstrahija commented on May 23, 2024

U can use the DetectSyntax package if you add this to the package settings:

"syntaxes": [
    {
        "name": "Blade",
        "rules": [
            {"file_name": ".*\\.blade.php$"}
        ]
    }
]

from laravel-blade.

laurencei avatar laurencei commented on May 23, 2024

I still had this issue (with only the "Blade" package added - no other packages).

To fix I opened one of my 'blade.php' files - and then went to View -> Syntax -> Open all with current extension as... -> Blade

And now its fixed

from laravel-blade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.