Code highlighting is here

4 156
Avatar for Read.Cash
5 years 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.

4
$ 0.00
Sponsors of Read.Cash
empty
empty
Avatar for Read.Cash
5 years ago

Comments

Please add Java! I plan to write some Java tutorials

$ 0.00
4 years ago

Should be available in about 10 minutes.

$ 0.00
4 years ago

It’s pretty awesome that you can roll it out so quick!

$ 0.00
4 years ago