- Joomla content plugin. Syntax highlightning of code snippets.
- Uses JS library PrismJS/prism.
- Uses JS library zenorocha/clipboard.js.
- Uses PHP library laminas/laminas-dom.
- Uses PHP library matthiasmullie/minify.
I have programmed this Joomla extension according to my personal needs for my own website. The configuration can be more or less complicated.
Questions in German or English can be directed to me at any time.
- https://github.com/GHSVS-de/plg_content_prismhighlighterghsvs/issues
- https://ghsvs.de/kontakt-aufnehmen-mit-ghsvs
There is also an undocumented editor button plugin for this content plugin, for which the above also applies: "Programmed for my needs", "Ask!".
@since v2022.06.08: Build procedere uses local repo fork of https://github.com/GHSVS-de/buildKramGhsvs
- Prepare/adapt
./package.json
. cd /mnt/z/git-kram/plg_content_prismhighlighterghsvs
If not done yet
npm install
(if needed)
npm run updateCheck
or (faster)npm outdated
npm run update
(if needed) or (faster)npm update --save-dev
- The composer.json is located in folder
./_composer
- Check for PHP libraries updates.
cd _composer/
composer outdated
OR
composer show -l
- both commands accept the parameter
--direct
to show only direct dependencies in the listing - If somethig to bump/update:
composer update
OR
composer install
If you think it's worth it.
cd /mnt/z/git-kram/php-cs-fixer-ghsvs
npm run plg_content_prismhighlighterghsvsDry
(= dry test run).npm run plg_content_prismhighlighterghsvs
(= cleans code).cd /mnt/z/git-kram/plg_content_prismhighlighterghsvs
(back to this repo).
cd ../
if you're still in_composer/
.node build.js
- New, installable ZIP is in
./dist
afterwards. - The second version after underscore in zip filename is the used prismjs version.
- All packed files for this ZIP can be seen in
./package
. But only if you disable deletion of this folder at the end ofbuild.js
.s
- Create new release with new tag.
- Get download link for new
dist/plg_blahaba_blubber...zip
from newly created tag branch and add to release description. - Extracts(!) of the update and changelog XML for update and changelog servers are in
./dist
as well. Check for necessary additions! Then copy/paste.