Is there a way to give CSS syntax highlighting to any <textarea> using any bookmarklets?
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.
精彩评论