PHPackages                             vrana/jush - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vrana/jush

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vrana/jush
==========

JUSH - JavaScript Syntax Highlighter

v2.1.3(1y ago)272.7M↓14.2%6[13 PRs](https://github.com/vrana/jush/pulls)7Apache-2.0JavaScript

Since Mar 2Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/vrana/jush)[ Packagist](https://packagist.org/packages/vrana/jush)[ Docs](https://jush.sourceforge.io/)[ RSS](/packages/vrana-jush/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (7)

```

JUSH - JavaScript Syntax Highlighter

JUSH - JavaScript Syntax Highlighter
Highlights the full stack of PHP application starting with HTML, PHP, SQL and JavaScript code and ending with HTTP headers, php.ini settings or database variables.

Demo
SQL highlighter for various databases
Tests
https://jush.sourceforge.io/">Homepage

Features

Highlights and links documentation in spaghetti code like nothing else: &lt;span style="font: small;"&gt;&lt;?php mysql_query("SELECT 1"); ?&gt;&lt;/span&gt;.
Supported languages: everything related to PHP: HTML5, JS, CSS 3, SQL including variables (multiple dialects), php.ini directives, HTTP and e-mail headers, Apache config. Anything could be embedded into each other, e.g. header("Content-Type: text/html") or color: expression(parentNode.style.color).
Allows using HTML tags in source code (could be used for pointing out important parts): echo "This part is important.". Produces overlapping HTML tags in this case though.
Performance is a priority.
&lt;textarea&gt; syntax highlight.

Installation instructions

Copy jush.css and jush.js into your directory.
Add following snippet before the &lt;/body&gt; tag in HTML file:
&lt;script src="jush.js"&gt;&lt;/script&gt;
&lt;script&gt;
jush.style('jush.css');
jush.highlight_tag('code');
&lt;/script&gt;

All &lt;code class="jush"&gt; tags will be highlighted. Language is determined by the class name beginning with "jush-" (e.g. &lt;code class="jush-js"&gt;). Default language is htm. It is also possible to use &lt;code class="language-*"&gt;.

If you want to enable dark mode, call jush.style('jush-dark.css'). To enable it only based on user preferences, call jush.style('jush-dark.css', '(prefers-color-scheme: dark)').

Alternativelly call jush.highlight(language, text) to syntax highlight single text.

Command-line help reference
It is also possible to use JUSH for opening the appropriate documentation in a browser. On Windows, it is possible to run:
Syntax: WScript jush-help.wsf filename line column [tabsize] [word]
Example: WScript jush-help.wsf readme.html 2 2

The example should open a browser with documentation of the &lt;html&gt; tag which is at position 2:2 of this file.

jush.style('jush.css');
jush.style('jush-dark.css', '(prefers-color-scheme: dark)');
jush.highlight_tag('code');

```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance65

Regular maintenance activity

Popularity51

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1285 days

Total

3

Last Release

430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24bc9f5ecb4c49c9d6776c717f2cd32b48deb532067675af4b0e23ae6889376d?d=identicon)[vrana](/maintainers/vrana)

---

Top Contributors

[![vrana](https://avatars.githubusercontent.com/u/117453?v=4)](https://github.com/vrana "vrana (218 commits)")[![peterpp](https://avatars.githubusercontent.com/u/1448883?v=4)](https://github.com/peterpp "peterpp (3 commits)")[![brusch](https://avatars.githubusercontent.com/u/142037?v=4)](https://github.com/brusch "brusch (1 commits)")

---

Tags

syntax-highlightingjavascriptSyntax highlighter

### Embed Badge

![Health badge](/badges/vrana-jush/health.svg)

```
[![Health](https://phpackages.com/badges/vrana-jush/health.svg)](https://phpackages.com/packages/vrana-jush)
```

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[laracasts/utilities

Transform your PHP to JavaScript

2.2k10.0M39](/packages/laracasts-utilities)[tedivm/jshrink

Javascript Minifier built in PHP

76037.7M139](/packages/tedivm-jshrink)[symfony/ux-turbo

Hotwire Turbo integration for Symfony

3906.8M47](/packages/symfony-ux-turbo)[tecnickcom/tc-lib-color

PHP library to manipulate various color representations

247.2M9](/packages/tecnickcom-tc-lib-color)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
