Coder Social home page Coder Social logo

Comments (12)

DAddYE avatar DAddYE commented on September 26, 2024

+1 !!!!

from vim-slim.

darthdeus avatar darthdeus commented on September 26, 2024

Could you provide a sample where it doesn't work? I'm using it on the master branch in a quite large project and it works fine for me.

If you're talking about embedding another syntax in slim, such as ruby/javascript/coffeescript, those were intentionally removed from the plugin for pure performance reasons in #22. You can checkout ec1f885 if you need the additional syntaxes.

But at least from my perspective, it's not really a good practice to have a lot of embedded languages in your HTML templates, if that's the case.

from vim-slim.

 avatar commented on September 26, 2024

@darthdeus an example for this behavior would be this file. It looks some kind of broken and weird if you use the latest git version of vim-slim.

from vim-slim.

darthdeus avatar darthdeus commented on September 26, 2024

@Poapfel it works fine for me for the example you gave (saved via :TOhtml)

from vim-slim.

DAddYE avatar DAddYE commented on September 26, 2024

As u can see it stopped to highlight HTML tags

Sent from my iPhone

On 17/ott/2012, at 10:05, Jakub Arnold [email protected] wrote:

@Poapfel https://github.com/Poapfel it works fine for me for the example
you gave https://dl.dropbox.com/u/2896872/layout.slim.html (saved via
:TOhtml)


Reply to this email directly or view it on
GitHubhttps://github.com/bbommarito/vim-slim/issues/23#issuecomment-9535206.

from vim-slim.

darthdeus avatar darthdeus commented on September 26, 2024

This is basically partial revert of the performance tweaks I did in #22, caused by deleting haml syntax, which is somehow used for tag highlighting if I understand this correctly.

But some attributes, like data-foo are still not highlighted properly ... I'm going to take a look at it some more.

from vim-slim.

 avatar commented on September 26, 2024

But some attributes, like data-foo are still not highlighted properly ... I'm going to take a look at it some more.

Those weren't highlighted before your changes.

from vim-slim.

DAddYE avatar DAddYE commented on September 26, 2024

I'm okay with performance, but now anything is highlighted. Can we revert
back and then figure a better approach to this?! Maybe setting a variable
in vimrc ?

Sent from my iPhone

On 17/ott/2012, at 12:14, Poapfel [email protected] wrote:

But some attributes, like data-foo are still not highlighted properly ...
I'm going to take a look at it some more.

Those weren't highlighted before your commits too.


Reply to this email directly or view it on
GitHubhttps://github.com/bbommarito/vim-slim/issues/23#issuecomment-9539990.

from vim-slim.

darthdeus avatar darthdeus commented on September 26, 2024

@DAddYE It has the same syntax highlighting as in the initial commit, so there's nothing really to revert.

As far as I know the data-foo comes from default HTML highlighting, so I'm not sure how to change that. But I might be wrong on that one.

from vim-slim.

DAddYE avatar DAddYE commented on September 26, 2024

mmm, yep because before it uses the haml syntax, now without that any html tag is not highlighted. In this case we can use plain text which is the same no ?

from vim-slim.

DAddYE avatar DAddYE commented on September 26, 2024

for those how want back the old syntax highlighting https://github.com/DAddYE/vim-slim

from vim-slim.

maletor avatar maletor commented on September 26, 2024

+1 this is broken from #22.

from vim-slim.

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.