[转]jqueryhighlight3.js使用笔记

文件高亮显示:

<html>
<head>
<title>JS HightLight!</title>
<script type = "text/javascript" src = "js/jquery-1.5.2.js"></script><script type = "text/javascript" src = "js/jquery.highlight-3.js"></script>
<script type = "text/javascript">
$(document).ready(function(){
//$('#highlight-plugin').removeHighlight().highlight('js');
‍$('#highlight-plugin').highlight('js');//以上两种写法均可
});
</script>
</head>
<body><style>
.highlight{
background:#FF0;
color:#E00;
}
</style>
<div id = "highlight-plugin">
js&nbspjsp
<form>
<table>
<tr>
<td>jsp</td>
<td>js</td>
<td>xml</td>
</tr>
</table>
</form>
</div>
</body>
</html>

来源:http://hi.baidu.com/shdren09/item/35feece67a7327afc00d753f

原文地址:https://www.cnblogs.com/seasons1987/p/3135330.html