PHPackages                             bit3/contao-pygments - 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. bit3/contao-pygments

AbandonedArchivedContao-module

bit3/contao-pygments
====================

Code elements, using the pygments syntax highlighter for Contao OpenSource CMS

013PHP

Since May 4Pushed 12y ago1 watchersCompare

[ Source](https://github.com/bit3archive/contao-pygments)[ Packagist](https://packagist.org/packages/bit3/contao-pygments)[ RSS](/packages/bit3-contao-pygments/feed)WikiDiscussions develop Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pygments content element
========================

[](#pygments-content-element)

[Pygments](http://pygments.org/) - the Python syntax highlighter - is a nice syntax highlighter with a lot of lexers, formatters and styles. This extension provide a content element and frontend module that output highlighted code made with pygments.

Limitations
-----------

[](#limitations)

You can select a style per element. This is useful if you use different styles on different pages. But keep in mind that you never can use multiple styles on the same page!

Optimisation
------------

[](#optimisation)

If you select a style in the content element or frontend module, the required style will be added to the page. If you want to use a "global" style definition, do not select any style in the element. You can dump the styles with `pygmentize -f html -S `. In most cases `pygmentize -f html -S default` is a good choice. Use `pygmentize -L styles` to get a complete list of all available styles.

After you dumped the styles, put them into a css file and include these file in your layout.

Tip: use the style selector in the element to find your favorite style.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/4e61f74ea186c1e79e072b2974ccdeef39414730476d5a8adac501eb9449b2a3?d=identicon)[tril](/maintainers/tril)

---

Top Contributors

[![tristanlins](https://avatars.githubusercontent.com/u/343404?v=4)](https://github.com/tristanlins "tristanlins (3 commits)")

### Embed Badge

![Health badge](/badges/bit3-contao-pygments/health.svg)

```
[![Health](https://phpackages.com/badges/bit3-contao-pygments/health.svg)](https://phpackages.com/packages/bit3-contao-pygments)
```

PHPackages © 2026

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