I'm looking for an online opensource editor for css files. It should have syntax highlighting. Also it should be easily integratable within php code.

Edit: I need something like textarea that highlights my css code. And i want to add it to my website so i can change my css from everyplace.

  • 1
    going to add an answer, but i'm not entirely sure what you mean. do you mean an editor that gets integrated into a website (like the one you wrote your question in) ? that allows you to edit content and also css or are you looking for an editor that allows you to edit css that is in the same document as php code ? – xyious Jul 25 '11 at 20:10
  • Check my answer I provided a demo in the update to an online open source editor with syntax highlighting which you can integrate into a web app – Anagio Mar 22 '12 at 4:42

Without a lot of research I will go ahead and assume that there is no javascript based editor that will syntax highlight code that you could integrate into a website. As a lightweight editor that syntax highlights and lets you edit css and php i would recommend notepad++. It will syntax highlight a lot of languages (html/php/css are among them). But there are many others.

| improve this answer | |
  • I've edited the question, so now it better explain what i want – user9182 Jul 25 '11 at 20:45
  • while it is possible to implement something that lets you edit css files or even html documents online i wouldn't recommend trying. Since there is very little use to something like that, i am fairly confident that no such thing exists in a downloadable form. I would always recommend editing the css offline and trying it out before uploading (if you have a css file and an html file you can just load it into a browser locally to see how it looks without even needing a webserver). – xyious Jul 25 '11 at 20:59

You should download and use CKEditor which is the editor that MailChimp and many other major companies use, it is open source and combined with the syntax highlighter plugin it's the perfect tool for integrating into your own custom web application to edit CSS and other files

Updating my answer

Ckeditor has syntax highlighting built in see the demo here

| improve this answer | |