Skip to content

GHSVS-de/plg_content_prismhighlighterghsvs

Repository files navigation

PLG_CONTENT_PRISMHIGHLIGHTERGHSVS

Be aware

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.

There is also an undocumented editor button plugin for this content plugin, for which the above also applies: "Programmed for my needs", "Ask!".

Prism docs/infos


My personal build procedure (WSL 1, Debian, Win 10)

@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

node/npm updates/installation

If not done yet

  • npm install (if needed)

Updates

  • npm run updateCheck or (faster) npm outdated
  • npm run update (if needed) or (faster) npm update --save-dev

composer

  • 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

PHP Codestyle

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).

Build installable ZIP package

  • 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 of build.js.s

For Joomla update server

  • 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.

About

Joomla content plugin. Syntax highlighting of code snippets. Uses JS library Prismjs. Uses PHP library laminas/laminas-dom.

Resources

Stars

Watchers

Forks

Packages

No packages published