zerosonesfun/lolight

This package is abandoned and no longer maintained. No replacement package was suggested.

Syntax highlighting alternative

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:flarum-extension

1.5 2020-11-25 20:48 UTC

This package is auto-updated.

Last update: 2020-12-25 21:05:42 UTC


README

A Flarum extension which provides an alternative to the built-in syntax/code highlighting style. This allows you to use [syntax][/syntax] which will then use the lolight JavaScript from Lars Jung to make your code beautiful in a minimal way. The JavaScript used to do this is less than 3kb. Visit https://larsjung.de/lolight/ for more information.

If you want to tweak the style, here's the CSS code you may use (add to Flarum's custom CSS in the admin):

.ll-nam { /* words */
    color: #2196f3;
}
.ll-num { /* numbers */
    color: #ec407a;
}
.ll-str { /* strings */
    color: #43a047;
}
.ll-rex { /* regular expressions */
    color: #ef6c00;
}
.ll-pct { /* operators, punctation */
    color: #666;
}
.ll-key { /* keywords */
    color: #555;
    font-weight: bold;
}
.ll-com { /* comments */
    color: #aaa;
    font-style: italic;
}

Install

composer require zerosonesfun/lolight

Update

composer update zerosonesfun/lolight

Remove

composer remove zerosonesfun/lolight And, if removing permanently, remove the leftover folder that was added to your public assets folder.

Links