Text Highlighter
How do I make an text highlighter?
This highlights whatever text you pass into the function. WIP.. What is a text highlighter? How do you make a text highlighter? This script and codes were developed by Sheodox on 26 December 2022, Monday.
Text Highlighter - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Text Highlighter</title>
</head>
<body> <h1>The Farnsworth Parabox</h1>
<p>Fry! Stay back! He's too powerful! Hey, whatcha watching? You seem malnourished. Are you suffering from intestinal parasites?</p>
<h2>Rebirth</h2>
<p>Stop! Don't shoot fire stick in space canoe! Cause explosive decompression! With a warning label this big, you know they gotta be fun! No. We're on the top. Ah, computer dating. It's like pimping, but you rarely have to use the phrase "upside your head."</p>
<ul>
<li>Spare me your space age technobabble, Attila the Hun!</li>
<li>Why yes! Thanks for noticing.</li>
<li>Please, Don-Bot… look into your hard drive, and open your mercy file!</li>
</ul>
<h3>Bendless Love</h3>
<p>Now, now. Perfectly symmetrical violence never solved anything. Do a flip! I don't know what you did, Fry, but once again, you screwed up! Now all the planets are gonna start cracking wise about our mamas. No! I want to live! There are still too many things I don't own!</p>
<h4>That Darn Katz!</h4>
<p>Good news, everyone! There's a report on TV with some very bad news! Maybe I love you so much I love you no matter who you are pretending to be. Kids don't turn rotten just from watching TV. You know, I was God once. That's the ONLY thing about being a slave.</p>
<ol>
<li>Yeah, I do that with my stupidness.</li>
<li>For example, if you killed your grandfather, you'd cease to exist!</li>
</ol>
<h5>Godfellas</h5>
<p>Yeah, lots of people did. And then the battle's not so bad? Would you censor the Venus de Venus just because you can see her spewers? I videotape every customer that comes in here, so that I may blackmail them later. They're like sex, except I'm having them! Check it out, y'all. Everyone who was invited is here.</p> <script src="js/index.js"></script>
</body>
</html>
Text Highlighter - Script Codes JS Codes
javascript:(function(){ function high(txt, color){ var elems = document.body.querySelectorAll("*"); for (var i = 0; i < elems.length; i++){ var inner = elems[i].innerHTML; var reg = new RegExp(txt, "g"); var rep = '<span style=' + color + '>' + txt + '</span>'; inner = inner.replace(reg, rep); elems[i].innerHTML = inner; } } high("nerd", "background:green;color:white;"); high("game", "background:blue;color:white;"); high("inside", "background:purple;color:white;");
})();
Developer | Sheodox |
Username | sheodox |
Uploaded | December 26, 2022 |
Rating | 3 |
Size | 2,562 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Format time function | 1,546 Kb |
Clean Dialog | 2,484 Kb |
Remove JavaScript event handlers from HTML | 2,095 Kb |
A Pen by sheodox | 1,388 Kb |
Pure Libs | 2,656 Kb |
Comic Sansify Bookmarklet | 2,293 Kb |
Angular todo list test | 1,664 Kb |
Youtube video time counter. | 1,797 Kb |
Click counter | 2,028 Kb |
Clean Expanding Tab Hover Navigation | 2,473 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Prism | Pyrografix | 2,843 Kb |
Simple personal profile | Miroot | 2,856 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Exploding Text | Jjmartucci | 4,749 Kb |
3D flipping card | Ssaakkaa | 2,238 Kb |
Slim Grid SASS SCSS v3.2 | Thesturs | 4,709 Kb |
NT Tribute | Skybutterfly | 2,850 Kb |
CSS Flip Animation | Bbodine1 | 2,525 Kb |
A Pen by Brendan Skousen | Bskousen | 2,954 Kb |
Ball Physics | Getsetbro | 3,149 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!