News for hackers. Stuff that matters.
Re:Live stylesheet editing by marcamillion on Thursday September 30, 2010 @02:02AM (#1742435)
Funny...I can't see the source code. But I can edit the stylesheet.

This is pretty cool.

1) How is it done?

2) How are you hiding how it's done?

Edit: Is it done through a Chrome extension?

Re:Live stylesheet editing by harisenbon on Thursday September 30, 2010 @02:23AM (#1742472)
It looks like he just uses the "contenteditable" property ( http://valums.com/edit-in-place/ ) to make it editable, and then displays it as a word-wrap: pre element.

While I can't think of any immediate applications, I had never realized that contenteditable was so widely supported. I'm going to have to try using it in my next project...

Re:Live stylesheet editing by noibl on Thursday September 30, 2010 @02:47AM (#1742496)
There's no such thing as a 'word-wrap: pre element'.
Re:Live stylesheet editing by noibl on Thursday September 30, 2010 @02:10AM (#1742449)
The STYLE element has the attribute 'contenteditable' and the CSS style 'display: block'.