Home  >  Article  >  Web Front-end  >  js dynamically colorizes code to display line number_javascript skills

js dynamically colorizes code to display line number_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:33:101347browse

This example uses a Javascript plug-in to dynamically color the code on the browser client and display the line number.
Javascript code coloring example effect: http://www.keleyi.com/keleyi/phtml/codecolor/a/ index.htm

The following is the code:

Copy the codeThe code is as follows:





Javascript code highlighting and coloring line numbers - Ke Leyi






Javascript code highlighting and coloring line numbers


<br>function KeleyiColor()<br>{<br>document.write ('keleyi.com');<br>return "hi!";<br>}<br>




Historical version:
http://www.keleyi.com/keleyi/phtml/codecolor/index.htm
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn