Web Spring 전정프

javascript jquery 자바스크립트 하이라이트 highlight js

zeuz 2020. 12. 3. 16:57
반응형

1.하이라이트 css 추가

.highlight {
	    color: blue;
	    font: bold;

	}

 

2.하이라이트

$("선택자").highlight('하이라이트할 단어');

 

3.하이라이트 제거

$("선택자").removeHighlight();	

 

 

johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html

highlight: JavaScript text higlighting jQuery plugin

Simple yet useful ! Thanks. About the "case-sensitiveness", I found out that plugging .js as is, same code was working differently in IE than FF, I mean insensitive in IE while case sensitive in FF, I solved this with a minor modification in the code, in t

johannburkard.de

 

반응형