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. [Templating &amp; Views](/categories/templating)
4. /
5. atk14/highlight-source-code

ActiveLibrary[Templating &amp; Views](/categories/templating)

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

Helper for source code highlighting in templates

029PHP

Since Jun 28Pushed 2y 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 3w 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

14

—

LowBetter than 1% of packages

Maintenance20

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://avatars.githubusercontent.com/u/974278?v=4)[Jaromir Tomek](/maintainers/yarri)[@yarri](https://github.com/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)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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