将行号添加到 HTML 文本区域 [英] Adding Line Numbers To HTML Textarea
本文介绍了将行号添加到 HTML 文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 如下面的代码.如何在左侧显示行号?
I have a <textarea />
as in the code below. How do I display the line numbers on the left hand side of it?
有 jQuery 插件吗?
Is there a jQuery plugin?
<TEXTAREA name="program" id="program" rows="15" cols="65" ></TEXTAREA>
推荐答案
有 Lined TextArea (链接不再有效,参见 镜像) Alan Williamson 的 jQuery 插件
麻省理工学院许可证
jQuery 1.3+
There is Lined TextArea (Link no longer valid, see mirror) plugin for jQuery by Alan Williamson
MIT License
jQuery 1.3+
这篇关于将行号添加到 HTML 文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文