2
Well, I want to define a color tag style.
The following example changes the style of an element
<p id="tag"> parágrafo </p>
To change the style of an HTML element, this syntax is used:
<script>
document.getElementById("tag").style.color = "blue";
</script>
So far so good, but I wish I could set a direct color on the tag displayed on the page
Then it would be syntax below, which puts the HTML element visible on the web page.
<p> parágrafo </p>
Result of the above syntax, its output is as in the line below
<p> parágrafo </p>
So I want you to <p>
and </p>
have defined color, stipulated by me, for example - blue
http://highlight.js
– Daniel Omine