udir-moodle / filter_syntaxhighlighter
Syntax Highlighter — Composer/Packagist mirror of the Moodle plugin filter_syntaxhighlighter, auto-updated from the Moodle plugins directory.
Package info
github.com/udir-moodle/filter_syntaxhighlighter
Type:moodle-filter
pkg:composer/udir-moodle/filter_syntaxhighlighter
Requires
- composer/installers: ~1.0 || ~2.0
- moodle/moodle: 4.1.* || 4.2.* || 4.3.* || 4.4.* || 4.5.*
This package is auto-updated.
Last update: 2026-06-16 16:52:45 UTC
README
This repository is a Composer/Packagist mirror of the Moodle plugin
filter_syntaxhighlighter. The plugin's own files
live at the repository root; a daily GitHub Action advances to the next
published version and tags it, so Packagist always tracks the directory.
| Package | udir-moodle/filter_syntaxhighlighter (type moodle-filter) |
| Installs to | the Moodle path for that type, via composer/installers (folder syntaxhighlighter) |
| Tags | the Moodle $plugin->version integer (e.g. 2024100700), one per release |
| Updater | goupdate (config: .goupdate.yml), run by .github/workflows/update.yml daily |
| Compatibility | each release requires moodle/moodle matching the Moodle versions it supports |
Only this .github/ folder, composer.json, and .goupdate.yml are owned
by the mirror — they always survive an update; everything else is the
upstream plugin and is replaced.
Setup in your Moodle/Composer project (required)
Each release requires moodle/moodle (the official core package — Packagist
mirrors the github.com/moodle/moodle tags), so declare your core version
first and bump it when you upgrade Moodle:
// composer.json of your site — pick ONE: "require": { "moodle/moodle": "4.5.10" } // installs core source, unused, into vendor/moodle/moodle "replace": { "moodle/moodle": "4.5.10" } // core already lives in your repo — declare without installing
composer require 'udir-moodle/filter_syntaxhighlighter:*' # '*' — versions are Moodle date integers
Composer then never selects a release that doesn't support your Moodle, and
upgrading core pulls plugins forward. If you skip the declaration, composer
satisfies the requirement itself by installing whatever core version fits into
vendor/ — declare it so updates are gated to your Moodle.
Custom placement
composer/installers installs moodle-filter packages to their standard Moodle path
automatically. To place differently, the consuming project's composer.json decides:
"extra": { "installer-paths": { "custom/path/{$name}/": ["type:moodle-filter"], // every moodle-filter package "exact/dir/": ["udir-moodle/filter_syntaxhighlighter"] // only this package } }
If moodle-filter is a sub-plugin type composer/installers doesn't know, also require
oomphinc/composer-installers-extender and add "installer-types": ["moodle-filter"].
Generated by moodle-composer-toolkit — see its README for setup and Packagist registration.