开发者

Making html tags selectable in GWT

开发者 https://www.devze.com 2022-12-30 07:36 出处:网络
I\'m trying to display an html source ( without interpretation ) and I\'d like all the nodes to be selectable (p, div, etc..).开发者_开发技巧 Something like in firebug where if I click on a node I can

I'm trying to display an html source ( without interpretation ) and I'd like all the nodes to be selectable (p, div, etc..).开发者_开发技巧 Something like in firebug where if I click on a node I can get it's properties. Does anybody have an idea how to do that or where to start ?


What about codemirror? Something like this:

http://marijn.haverbeke.nl/codemirror/mixedtest.html

You'd have to integrate it into GWT via JSNI, but that wouldn't be to hard. It has hooks to get the cursor position etc.

0

精彩评论

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