Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Jade and Stylus #801

Closed
Hoverbear opened this issue Jun 10, 2012 · 7 comments

Comments

Projects
None yet
5 participants
@Hoverbear
Copy link

commented Jun 10, 2012

Hi there,
Jade, and Stylus are both popular and used with Express.

@gjtorikian

This comment has been minimized.

@Hoverbear

This comment has been minimized.

Copy link
Author

commented Jun 10, 2012

For Vim:
Jade
Stylus

@gjtorikian

This comment has been minimized.

Copy link
Contributor

commented Jul 24, 2012

I started on Jade support but can't get tags working properly: https://github.com/ajaxorg/ace/tree/jade_sh

Will need to pick this up at a later time, just putting this out there.

@youurayy

This comment has been minimized.

Copy link

commented Aug 16, 2012

This would be great to have, both Jade and Stylus.

I found a year old Jade mode here.

(Had to replace var oop = require("pilot/oop"); in mode-jade.js with var oop = require("ace/lib/oop"); to get it working with current Ace.)

Can't find a mode for Stylus anywhere, and currently there's no spare time to do it myself.

One note - would be good to get auto-indentation working properly in these, if someone's up to it.

@gjtorikian

This comment has been minimized.

Copy link
Contributor

commented Aug 17, 2012

Hi @ypocat

Yes, I also found that project, and used it as a basis for my new Mode: https://github.com/ajaxorg/ace/blob/jade_sh/lib/ace/mode/jade_highlight_rules.js (giving the author credit, naturally)

I think what it's not doing right now is proper highlighting or parenthesis attributes. I will try to take a look at it within the week.

@jmendeth

This comment has been minimized.

Copy link

commented Aug 17, 2012

In CodeMirror, some people suggested to use Jade / Stylus itself to do the parsing.
They're both JavaScript, and separate the Parsing from the Rendering logic, so it could be possible.

What do you think?

@nightwing

This comment has been minimized.

Copy link
Member

commented Aug 17, 2012

that could work for syntax checking
but for highlighting
i think it will be too slow, and will not handle errors well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.