Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exizt/mediawiki-extension-aetcodehighlight
https://github.com/exizt/mediawiki-extension-aetcodehighlight
mediawiki mediawiki-extension
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/exizt/mediawiki-extension-aetcodehighlight
- Owner: exizt
- License: gpl-2.0
- Created: 2022-10-16T06:50:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T11:54:41.000Z (11 months ago)
- Last Synced: 2024-02-14T14:04:47.286Z (11 months ago)
- Topics: mediawiki, mediawiki-extension
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AetCodeHighlight
Overview
* Extensions to help highlight source code syntax on media wiki.
* Link: https://github.com/exizt/mediawiki-extension-AetCodeHighlight.git
* using CDN of `highlight.js`/`prismjs`.## Requirements
* PHP 7.4.3 or later (tested up to 7.4.30)
* MediaWiki 1.35 or later (tested up to 1.35)## cloning a repository
```shell
git clone [email protected]:exizt/mediawiki-extension-AetCodeHighlight.git AetCodeHighlight
```## Installation
1. Download and place the files in a directory called `AetCodeHighlight` in your `extensions/` folder.
2. Add the following code at the bottom of your `LocalSettings.php`:
```
wfLoadExtension( 'AetCodeHighlight' );
```## Configuration
- `$wgAetCodeHighlight['type']`
- Choose from the Syntax Highlight feature.
- value : `'highlightjs'` or `'prismjs'`
- default : `'highlightjs'`## Usage
using `source` tag or `scode` tag or `syntaxhighlight` tag.