Sublime像HTML5中的多个游标 [英] Sublime like Multiple Cursors in HTML5

查看:162
本文介绍了Sublime像HTML5中的多个游标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你有一个想法如何获得Sublime或云9喜欢多光标功能到浏览器?
有没有任何jQuery插件来做或有任何人的想法?
我想在textera中有多个游标,也许在多个文本区域。应该可以使用HTML5,但在网络中找不到任何内容!

do you have an idea how to get the Sublime or Cloud 9 like Multiple Cursors functionality to the browser? Is there any jQuery Plugin to do it or has anyone the Idea? I want multiple cursors in a textera, maybe in multiple text areas. Should be possible with HTML5, but didn't find anything in the web!

谢谢!

推荐答案

由于 ace编辑器有多个游标,如果你想看看它的魔法,你可以看看 multi_select.js 在acs github repo。

As barlop said ace editor has multiple cursors, if you want to take a look to its magic you could maybe take a look to multi_select.js at aces github repo.

为了给你一个有关如何做的想法,除了之外,没有 textarea >主光标。 Ace将一个大的 textarea 的外观分解成多个 divs 。放置多个游标时,ace会将主游标中输入的文本复制到另一个 span divs

In order to give you a little idea on how to do it, there's no textarea except under the main cursor. Ace breaks down text into multiple divs with the appeareance of a big textarea. When you place multiple cursors, ace copies the text entered in the main cursor to the other spans or divs.

这篇关于Sublime像HTML5中的多个游标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆