{"id":537,"date":"2019-04-03T13:26:07","date_gmt":"2019-04-03T04:26:07","guid":{"rendered":"https:\/\/www.itchefblog.com\/?p=537"},"modified":"2019-11-11T23:24:03","modified_gmt":"2019-11-11T14:24:03","slug":"jquery%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ea%b2%80%ec%83%89%ec%96%b4-%ed%95%98%ec%9d%b4%eb%9d%bc%ec%9d%b4%ed%8a%b8-search-word-highlighting-with-jquery","status":"publish","type":"post","link":"https:\/\/www.itchefblog.com\/?p=537","title":{"rendered":"jQuery\ub97c \uc774\uc6a9\ud55c \uac80\uc0c9\uc5b4 \ud558\uc774\ub77c\uc774\ud2b8 \/ Search Word Highlighting with jQuery"},"content":{"rendered":"<p>\uae30\uc874\uc5d0 \ubc31\uc564\ub4dc \ub2e8\uc5d0\uc11c \ucc98\ub9ac\ud558\ub358 \uac80\uc0c9\uc5b4 \ud558\uc774\ub77c\uc774\ud2b8 \uae30\ub2a5\uc744 \uac04\ub2e8\ud788 jQuery\ub97c \uc774\uc6a9\ud574\uc11c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc774 \uc788\uc5b4\uc11c \uc18c\uac1c\ud55c\ub2e4.<\/p>\n<p>\uc81c\uc791\uc790\ub294 Johann Burkard\uc774\uba70 \uc6f9\uc0ac\uc774\ud2b8\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<br \/>\n<a href=\"https:\/\/johannburkard.de\/blog\/programming\/javascript\/highlight-javascript-text-higlighting-jquery-plugin.html\" target=\"_blank\" rel=\"noopener\">https:\/\/johannburkard.de\/blog\/programming\/javascript\/highlight-javascript-text-higlighting-jquery-plugin.html<\/a><\/p>\n<p>style css\uc5d0 <\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">.highlight { background-color: #\uc6d0\ud558\ub294\ubc30\uacbd\uc0c9; color: #\uc6d0\ud558\ub294\uae00\uc790\uc0c9 }<\/pre>\n<p> \uacfc \uac19\uc774 \uc14b\uc5c5 \ud574\ub450\uace0<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">$(&quot;#\uc6d0\ud558\ub294\ub178\ub4dc).highlight('\uac80\uc0c9\uc5b4');<\/pre>\n<p> \uc640 \uac19\uc774 \ud638\ucd9c \ud574\uc8fc\uba74 \ud574\ub2f9 \ub178\ub4dc \ud558\uc704\uc5d0 \uc788\ub294 \ubaa8\ub4e0 \uac80\uc0c9\uc5b4\uc5d0 .highlight \uc2a4\ud0c0\uc77c\uc774 \uc801\uc6a9\ub41c\ub2e4.<\/p>\n<p>\ud558\uc774\ub77c\uc774\ud2b8\ub97c \uc81c\uac70\ud558\uace0 \uc2f6\uc73c\uba74 <\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">$(&quot;#\uc6d0\ud558\ub294\ub178\ub4dc).removeHighlight();<\/pre>\n<p> \uc640 \uac19\uc774 \ud638\ucd9c \ud574\uc8fc\uba74 \uc2a4\ud0c0\uc77c\uc774 \uc81c\uac70\ub41c\ub2e4.<\/p>\n<p>\uc0ac\uc6a9\ud558\uae30\uc5d0 \ub530\ub77c id, class, tag \ub4f1 \uc6d0\ud558\ub294 \ubc94\uc704\uc5d0 \ubaa8\ub450 \uc801\uc6a9 \uac00\ub2a5\ud558\ubbc0\ub85c \uc751\uc6a9\ud558\uae30\uc5d0 \ub530\ub77c \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ud50c\ub7ec\uadf8\uc778\uc774\ub2e4.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(&quot;#id').highlight('search_word');\r\n$(&quot;.class').highlight('search_word');\r\n$(&quot;tag').highlight('search_word');\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uae30\uc874\uc5d0 \ubc31\uc564\ub4dc \ub2e8\uc5d0\uc11c \ucc98\ub9ac\ud558\ub358 \uac80\uc0c9\uc5b4 \ud558\uc774\ub77c\uc774\ud2b8 \uae30\ub2a5\uc744 \uac04\ub2e8\ud788 jQuery\ub97c \uc774\uc6a9\ud574\uc11c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc774 \uc788\uc5b4\uc11c \uc18c\uac1c\ud55c\ub2e4. \uc81c\uc791\uc790\ub294 Johann Burkard\uc774\uba70 \uc6f9\uc0ac\uc774\ud2b8\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4. https:\/\/johannburkard.de\/blog\/programming\/javascript\/highlight-javascript-text-higlighting-jquery-plugin.html style css\uc5d0 \uacfc \uac19\uc774 \uc14b\uc5c5 \ud574\ub450\uace0 \uc640 \uac19\uc774 \ud638\ucd9c \ud574\uc8fc\uba74 \ud574\ub2f9 \ub178\ub4dc \ud558\uc704\uc5d0 \uc788\ub294 \ubaa8\ub4e0 \uac80\uc0c9\uc5b4\uc5d0 .highlight \uc2a4\ud0c0\uc77c\uc774 \uc801\uc6a9\ub41c\ub2e4. \ud558\uc774\ub77c\uc774\ud2b8\ub97c \uc81c\uac70\ud558\uace0 \uc2f6\uc73c\uba74 \uc640 \uac19\uc774 \ud638\ucd9c \ud574\uc8fc\uba74 \uc2a4\ud0c0\uc77c\uc774 \uc81c\uac70\ub41c\ub2e4. \uc0ac\uc6a9\ud558\uae30\uc5d0 \ub530\ub77c id, class, &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/537"}],"collection":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=537"}],"version-history":[{"count":4,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/537\/revisions"}],"predecessor-version":[{"id":671,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/537\/revisions\/671"}],"wp:attachment":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}