开发者

Is there a way to give CSS syntax highlighting to any <textarea> using any bookmarklets?

开发者 https://www.devze.com 2022-12-25 00:58 出处:网络
Is there a way to give CSS syntax highlighting to any <textarea> using any bookmarklets or favlets? I work on a CMS where I write and manage CSS in a plain <te开发者_运维百科xtarea> like N

Is there a way to give CSS syntax highlighting to any <textarea> using any bookmarklets or favlets? I work on a CMS where I write and manage CSS in a plain <te开发者_运维百科xtarea> like Notepad. Is there a boomarklet to enable CSS syntax highlight in specific <textarea> temporarily?

Should work in IE.


If you know how to write a bookmarklet, you may be able to adapt Code Mirror.


I don't know about mookmarklets or Favlets, but you could write a userscript to do that.

Not sure if IE supports anything like that, but Firefox, Chrome and Opera all support userscripts. (Use Greasemonkey for Firefox)

For example, I wrote this script for myself, to highlight code on the Bytes forums, which I can use in all three browsers. (Feel free to use that if you want.)

Edit. It seems the IE7pro addon for IE supports Greasemonkey-like userscripts.

0

精彩评论

暂无评论...
验证码 换一张
取 消