skip to Main Content

HTML+CSS+JS dynamic selected text highlighting color change

I use an HTML page to render some console output. The content of this page is pretty simple: <div> <span style="color: #0cc;">Checking random configurations</span><br> <span style="color: #0cc;">Installing new setup</span><br> ...<br> <span style="color: #0cc;">Done setup</span><br> <span style="color: #0cc;">Start</span><br> <span style="color: #c00;">ERROR</span><br>…

VIEW QUESTION

highlight code in html using <font color="#xxx">

I want to know how to highlight my code in html like this. <font color="#1773cc">#include </font><font color="#4a6f8b">&lt;NTL/ZZ.h&gt;</font><br> <br> <font color="#b02f60"><b>using</b></font>&nbsp;<font color="#008b00"><b>namespace</b></font>&nbsp;std;<br> <font color="#b02f60"><b>using</b></font>&nbsp;<font color="#008b00"><b>namespace</b></font>&nbsp;NTL;<br> <br> <font color="#008b00"><b>int</b></font>&nbsp;main()<br> {<br> &nbsp;&nbsp; ZZ a, b, c; <br> <br> &nbsp;&nbsp; cin &gt;&gt; a; <br>…

VIEW QUESTION
Back To Top
Search