Comments (12)
+1 !!!!
from vim-slim.
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.
@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.
@Poapfel it works fine for me for the example you gave (saved via :TOhtml
)
from vim-slim.
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.
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.
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.
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.
@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.
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.
for those how want back the old syntax highlighting https://github.com/DAddYE/vim-slim
from vim-slim.
+1 this is broken from #22.
from vim-slim.
Related Issues (20)
- Move to slim-template organization HOT 6
- Syntax highlight data attributes
- Install instructions HOT 1
- Inivisible chars are not shown
- Why the rails tags are not highlighted? HOT 3
- Vim sets filetype to HTML (not Slim) when using 'doctype html' HOT 15
- 'syntax enable' must be set
- syntax highlight issue, variable in meta content HOT 3
- Install trouble with spf13/spf13-vim HOT 1
- Bad highlighting: div data-foo=({ x: y })
- Syntax highlight doesn't work with brackets HOT 1
- Highlight for Rails helpers
- Vundle instructions out of date? HOT 1
- Slim syntax highlighting not working? HOT 3
- Abandoned? HOT 4
- < and > markers
- Attributes without quotes break detecting terminating parenthesis HOT 6
- web components
- XML namespace highlighting broken
- Remove caveat about vim "doctype html"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-slim.