PHPackages                             atk14/highlight-source-code - 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. atk14/highlight-source-code

ActiveLibrary

atk14/highlight-source-code
===========================

Helper for source code highlighting in templates

029PHP

Since Jun 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/atk14/HighlightSourceCode)[ Packagist](https://packagist.org/packages/atk14/highlight-source-code)[ RSS](/packages/atk14-highlight-source-code/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

HighlightSourceCode
===================

[](#highlightsourcecode)

Helper for source code highlighting in templates.

It is using GeSHi and basically it consists of a block function and a modifier for Smarty templating engine.

Usage in a ATK14 template
-------------------------

[](#usage-in-a-atk14-template)

```
{!$html_snippet|highlight_source_code}
{!$php_snippet|highlight_source_code:"php"}
{!$template_snippet|highlight_source_code:"smarty"}

```

There is also a block helper which provides some more options

```
{highlight_source_code}
  Title
{/highlight_source_code}

{highlight_source_code lang="html" overal_class="code code--html" overal_id="id_content"}
  Title
{/highlight_source_code}

```

Installation
------------

[](#installation)

Just use the Composer:

```
cd path/to/your/atk14/project/
composer require atk14/highlight-source-code dev-master

```

Optionaly you can link (or copy &amp; edit) helpers to your project.

```
ln -s ../../vendor/atk14/highlight-source-code/src/app/helpers/block.highlight_source_code.php app/helpers/
ln -s ../../vendor/atk14/highlight-source-code/src/app/helpers/modifier.highlight_source_code.php app/helpers/

```

License
-------

[](#license)

HighlightSourceCode is free software distributed [under the terms of the MIT license](http://www.opensource.org/licenses/mit-license)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6304dffbd91d7a978f98632b0e4e30d662dcdb691daadb1388a58984e98faf5c?d=identicon)[yarri](/maintainers/yarri)

---

Top Contributors

[![yarri](https://avatars.githubusercontent.com/u/974278?v=4)](https://github.com/yarri "yarri (9 commits)")

### Embed Badge

![Health badge](/badges/atk14-highlight-source-code/health.svg)

```
[![Health](https://phpackages.com/badges/atk14-highlight-source-code/health.svg)](https://phpackages.com/packages/atk14-highlight-source-code)
```

PHPackages © 2026

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