Code highlighting is here

0 21
Avatar for Read.Cash
Written by
  242
4 months ago

This was pretty boring and hard to read, right?

Imagine if it was like this:

CSS

.editor { margin-right: 10px; }

HTML

<div id="test">The text</div>

PHP

$variable = 'test';

SQL

SELECT * FROM tablename WHERE userid = 15;

JavaScript

document.querySelectorAll('.users').forEach(user => user.isAwesome());

Well, it is! 🎉

Now, your code will be highlighted.

Huge thanks goes to highlight.js.

If your favourite language is missing - let us know (in comments) and we'll add it.

$ 0.00
Sponsors of Read.Cash
Avatar for Read.Cash
Written by
  242
4 months ago
Enjoyed this article?  Earn Bitcoin Cash by sharing it! Explain
...and you will also help the author collect more tips.

Comments

About us Rules What is Bitcoin Cash? Roadmap Affiliate program Get sponsored Self-host
hello@read.cash (PGP key) Reddit