35

I'm trying to use LESS in my webpage, but am having trouble compiling it. It's built to work on ruby, which I don't have permission to install on my pc. Is there an online tool for this compilation?

I know that lessphp exists, but I can't find the demo on their site any longer.

To summarise, I'm looking for a quick and dirty solution to compiling LESS to test my stylesheets locally. Ideally, this would integrate with Microsoft Expression Web 4 (hooray for dreamspark), but I'd be perfectly happy with a "copy, paste, compile, copy, paste" web interface.

Does such an interface exist?

Eric
  • 95,302
  • 53
  • 242
  • 374
  • 1
    Why not use LESS in client side mode where javascript does the LESS "compilation"? http://lesscss.org/#-client-side-usage – Matthew Lock May 24 '12 at 02:38
  • 4
    @MatthewLock: Because the site will look terrible with javascript disabled. – Eric May 24 '12 at 07:59
  • 1
    "I'm looking for a quick and dirty solution to compiling LESS to test my stylesheets locally. " – Matthew Lock May 24 '12 at 23:32
  • @MatthewLock: Oh, good point. I asked this almost two years ago - don't expect me to remember what I wrote! The problem with that is that lessjs supports a slightly different dialect to lessphp, which is what I run on the server. – Eric May 25 '12 at 08:08
  • try simpless at http://wearekiss.com/simpless this work best for win,mac even on linux. – Anirudha Gupta Sep 28 '12 at 14:37

13 Answers13

28

The demo feature on lessphp is still there.

irishbuzz
  • 2,420
  • 1
  • 19
  • 16
22

I don't want to advertise my own stuff, but it answers the question and it's open source! I made this about two weeks ago - The Online LESS Converter.

Blog entry: "Try the LESS converter, right now!"

GitHub project: NathanStrutz/LESS-Converter

Nathan Strutz
  • 8,095
  • 1
  • 37
  • 48
  • it works, but it doesn't support the @import clause, you have to merge all of your files to use this tool. – Spartaco Oct 21 '11 at 07:47
  • 1
    Right, it can't @import from multiple inputs because it's just one text field. If you can think of a suggestion to fix it, please let me know on the github project page. We can work on it and make it awesome. – Nathan Strutz Oct 21 '11 at 15:44
  • please be aware.. @import "../.htaccess"; will import files from your server :/ suz – Zalaboza Feb 01 '14 at 01:43
6

Less2CSS
http://www.less2css.org
Website is open-source: http://github.com/brian-frichette/less-preview

My co-worker and I needed the same functionality, so we whipped up this online compiler.

Highlights:

  • CSS is updated in real-time, as-you-type, completely client-side.
  • You can choose between LESS versions (ie. v1.3.3, v1.3.0, etc)
Scott Rippey
  • 15,614
  • 5
  • 70
  • 85
2

Recommended list form less official website:

Online Less Compilers

Online Web IDEs/Playgrounds with Less support

Community
  • 1
  • 1
Chen-Tsu Lin
  • 22,876
  • 16
  • 53
  • 63
2

I added a larger syntax highlighting editor and compiler to the lessphp page: http://leafo.net/lessphp/editor.html

leafo
  • 1,862
  • 14
  • 18
  • using this and keep getting warning: ""Warning: Invalid argument supplied for foreach() in /home/leaf/public_html/lessphp/src/lessc.inc.php on line 282"" Any reason what may be causing this? – franka Mar 22 '12 at 19:09
2

There is also win less (for windows), which seems to work better for me than lessphp.

franka
  • 1,867
  • 3
  • 17
  • 31
1

Here is an online converter i developed recently.

Please give it a try and let me know what you think.

http://www.marcdonaldson.com/less-2-css-online-converter/

My website is still undergoing development and will contain a lot of useful tools once I have developed them ;).

Kind Regards Marc Donaldson

1

http://codepen.io

change the css tab (the one in the middle) to use LESS syntax, then paste your LESS code, and click on tab title to see a preview of the compiled css.

plus you get a lot of nice things there, to preview the results live, sharing, integrating with github gists, etc.

Benja
  • 4,099
  • 1
  • 30
  • 31
1

LessTester (http://lesstester.com/) is an online LESS compiler that also does CSS minification. Very nice for deploying CSS code developed in LESS.

Peter
  • 2,874
  • 2
  • 31
  • 42
0

These are basically GUI LESS compilers. https://github.com/cloudhead/less.js/wiki/GUI-compilers-that-use-LESS.js

My personal favorite is Crunch. It's in ADOBE Air format.

chanHXC
  • 611
  • 1
  • 7
  • 17
0

For mac, just use: http://incident57.com/less/

For windows, use: http://winless.org/

0

http://incident57.com/less/ LESS app or http://fadeyev.net/2010/06/19/lessjs-will-obsolete-css/ LESS.js (my preference, since you can link it from google, however it does not run locally).

Elyse Holladay
  • 610
  • 1
  • 5
  • 10
0

There is(was?) also http://onless.duostack.net/ but currently the server seems to have some difficulties...

However, source code is here: https://github.com/chendrix/onless.git

abernier
  • 27,030
  • 20
  • 83
  • 114