Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support CSS? #68

Closed
se7h opened this Issue · 8 comments

4 participants

@se7h

HTML and JS formatted perfectly, but no CSS

Will support CSS in future?

Thanks

@einars
Owner

I myself don't have any plans on that — but I didn't write the HTML mode either. So, if somebody steps up to it, they are most welcome :)

@se7h

Thanks for your post!

but exists de facto alliance "html + css + js" and the simplest in structure does not supported in js-beautify

http://tools.arantius.com/tabifier (http://static.arantius.com/inc/tabifier.js) - contains part for CSS formatting

Best Regards

@jdespatis

I'm also looking for that feature (in fact a php class, but as I've seen an already existing php port of jsbeautifier, I guess that if jsbeautifier was supporting css, then all ports would support it also, which would be awesome :) )

I've googled a little, I've seen mostly csstidy, which is outdated (2007, php4 at that time)

@laacz

@jdespatis What do you mean by "outdated"? AFAIK CSS syntax has not changed in years, and it does not look that it will anytime soon.

@jdespatis

@laacz Sorry, I was indeed talking about the php class of csstidy, it has been coded in php4, I get a bunch of warning, notices and so on when I launch it from php 5.3

And well besides this, I'm testing csstidy on a css and the css (which is valid) becomes invalid, I can see in it a bunch of "\A" strings...

If only csstidy was on github, some pull could be done to make it php5.3 friendly and maybe correct some bugfixes (those \A for example that appear for some reasons)
but afaik, csstidy is not on github, right?

@laacz

Since it is under LGPL, you can put it on github yourself :) Fetch trunk from SF SVN, and off you go. Probably a polite thing to do would be trying to contact author before that.

@jdespatis

You're right @laacz I'm currently trying to contact the developer of csstidy

@einars
Owner

I believe nightwing has done this, closing

@einars einars closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.