Coder Social home page Coder Social logo

Comments (10)

curtailment avatar curtailment commented on May 23, 2024

Came here to say the same thing. Highlighting does not work inside HTML comments, HTML attributes, or JavaScript strings.

from laravel-blade.

kuroisuna avatar kuroisuna commented on May 23, 2024

+1
Right now looks awful:
image

from laravel-blade.

sixpetrov avatar sixpetrov commented on May 23, 2024

I miss that feature so much. Currently is ugly as hell and I can't find solution.
Is it so hard to do this? I tried but without success.

from laravel-blade.

Medalink avatar Medalink commented on May 23, 2024

There is not currently a way to do this as far as I have been able to figure out. The reason is because Sublime uses a first come first serve hierarchy when parsing what get's highlighted. The blade highlighter depends on both the HTML highlighter and the PHP highlighter. The issue here is that the HTML highlighter is super greedy when it comes to parsing rules like this and by the time Blade tries Sublime ignores it. The only solution I can think of is to add in both the HTML/PHP highlighters myself and adjust them. But then I must maintain both of them which is far outside the scope of this project.

If anyone has ideas I would love to try them as this has been an issue for quite some time.

from laravel-blade.

empz avatar empz commented on May 23, 2024

I can't even get proper blade syntax highlighting... The {{ }} doesn't get colored properly...
image

And yes, I have set the syntax to Blade PHP..

from laravel-blade.

Medalink avatar Medalink commented on May 23, 2024

@emzero The syntax should be: PHP - Laravel Blade. Make sure you are on the latest version. Take a look at the README and make sure you are not using a conflicting package.

from laravel-blade.

sleeviin avatar sleeviin commented on May 23, 2024

@emzero I have the same problem, please can you help me how fix it?, and @Medalink I am sure that I have the syntax PHP-Laravel Blade and still isn't fix. :(

from laravel-blade.

Medalink avatar Medalink commented on May 23, 2024

@sleeviin make sure you are not using a conflicting package.

from laravel-blade.

ctf0 avatar ctf0 commented on May 23, 2024

also for something like

<link href="{{ asset('_css/main.css') }}" rel="stylesheet" media="screen, projection">

everything inside the double quotes is treated the same ,i think we need a regex inside the blade tmlang to detect something like the {{ }} and give it a proper HL.

from laravel-blade.

zaynali53 avatar zaynali53 commented on May 23, 2024

@Medalink This issue has been resolved f338c41

However, Most color schemes don't highlight these kind of edge cases. Only highlights generic scopes in the code so you won't find the difference.

For this reason, i made a new color scheme, focused heavily on JSX (React), ES6 and Laravel Blade.

Acme Color Scheme

capture

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.