PluginCode


Implements media handling for programming source code

This media handler handles programing languages source code. This is useful for storing code snippets in the wiki.

Source code meta-data can be stored in the file as comments:

For PHP:

##---
## title: my-php-file.php
## date: 2023-03-05
##---

For python:

##---
## title: sample-python.py
## date: 2023-03-25
##---

Adding additional languages

To add an additional language, create anew entry in the TYPES constant.

Each array entry contains: