neilime/geshi-twig-extension

Twig extension to work with Geshi - Generic Syntax Highlighter rendering

v3.0.0 2024-08-29 13:39 UTC

This package is auto-updated.

Last update: 2024-10-27 06:28:50 UTC


README

Geshi Twig Extension

Continuous Integration codecov Latest Stable Version Total Downloads License Sponsor

📢 Geshi Twig Extension is a Twig extension for GeSHi - Generic Syntax Highlighter rendering.

{{ '<?php\necho \'test\';\n?>' | geshi('php') }}
{% geshi 'javascript' %}
    {"data": "test"}
{% endgeshi %}

Helping Project

❤️ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can sponsor him. Thank you !

Contributing

👍 If you wish to contribute to this project, please read the CONTRIBUTING.md file. Note: If you want to contribute don't hesitate, I'll review any PR.

Documentation

Installation

Usage

Code Coverage

PHP Doc

Development