Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I've been searching all over the Internet and am having trouble finding the following:

  • An online code editor (with syntax highlighting, line numbers, etc.) that allows you to save the file in the "cloud" and access the raw file via a link.

I'm trying to use LESS from http://lesscss.org on my SquareSpace website, but it requires you to use a <link href="..." /> tag instead of dropping the less directly in <style> tags in my site.

Anyone have any suggestions?

Thanks!

share|improve this question

migrated from stackoverflow.com Jul 7 '11 at 17:25

This question came from our site for professional and enthusiast programmers.

1  
Probably belongs to programmers.stackexchange.com –  Mrchief Jul 7 '11 at 3:25
    
@Mrchief - Haven't been active on SO in a while. Didn't realize there was a better site. Thanks for the suggestion :-) –  Topher Fangio Jul 7 '11 at 12:48

2 Answers 2

up vote 2 down vote accepted

Okay so I think I understand here. http://pastebin.com/ is an excellent website that I use. The code can be public or private and it has syntax highlighting for many languages.

Hope that helped!

share|improve this answer
    
Thanks so much! I don't know why I didn't think of that before! I actually use GitHub gists and forgot they have the ability to grab the raw file as well. –  Topher Fangio Jul 7 '11 at 12:46
    
Yeah GitHub is cool, quite like it, but the origional Pastebin is my fave :) Glad I could help. –  RossDoughty Jul 7 '11 at 12:50
    
FYI - For anyone reading this in regards to using LESS: this solution doesn't work since LESS actually loads the .less file via AJAX; which means it must be on the same server as your site due to the Cross Domain Policy. My solution: View Page Source, copy/paste it into an index.html file and have my <link> tag point at a local styles.less file. Hope this helps some future soul :-) –  Topher Fangio Jul 7 '11 at 13:02

JsFiddle allows to write HTML, CSS and JavaScript and run the generated page.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.