How do I style codes?

Asked

Viewed 58 times

1

How do I style a code ?
For example:
I posted this code on my blog:

<?= "Olá :D"; ?>

Only it will display normal, like a text, but inside the tag <pre></pre>.

But my question is, how do I stylize and make it visible to my readers like this: inserir a descrição da imagem aqui

And depending on the language, the stylization is different.
In my form I can select the type of code.. <pre><code class="language-php"><?= "Olá :D"; ?></code></pre>

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.