====== Codify Plugin ======
---- plugin ----
description: Provides awesome code highlighting using PrismJS in DokuWiki pages
author : Christian Ezeani
email : christian@cyberpull.com
type : syntax, action
lastupdate : 2023-04-23
compatible : Anteater+
depends :
conflicts :
similar :
tags : code, prismjs, syntaxhighlight
downloadurl: https://github.com/christianezeani/dokuwiki-plugin-codify/releases/latest/download/codify.zip
bugtracker : https://github.com/christianezeani/dokuwiki-plugin-codify/issues
sourcerepo : https://github.com/christianezeani/dokuwiki-plugin-codify
donationurl: https://paystack.com/pay/dokuwiki-codify
screenshot_img : https://raw.githubusercontent.com/christianezeani/dokuwiki-plugin-codify/1b85349c62984b212848c63e644ceee866d52be5/codify.png
----
===== Installation =====
Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.
===== Examples/Usage =====
See the plugin in action [[https://www.cyberpull.com/wiki/opensource/ngsuite|here]]. The sample page shows all the styles available with the plugin.
{{ https://raw.githubusercontent.com/christianezeani/dokuwiki-plugin-codify/1b85349c62984b212848c63e644ceee866d52be5/codify.png |}}
===== Syntax =====
import { NgModule } from '@angular/core';
import { NGSuiteModule } from '@ngsuite/ngsuite';
@NgModule({
...
imports: [
...
NGSuiteModule.forRoot()
],
...
})
export class AppModule { }
Only contents inside '''' are highlighted. You can optionally pass the language as an attribute like this, ''''. The language is auto-detected if no language is specified. [[https://prismjs.com/index.html#supported-languages|See languages supported by PrismJS]].
===== Theme Settings =====
To change the theme for Codify, visit the **Configuration Manager** and head to the **Codify** section. There you can choose from the available themes.
=== Change Log ===
* **2023-04-23**
* Add settings to Configuration Manager
* **2023-03-31**
* Fix empty first line
* **2023-03-21**
* Initial release
===== Discussion =====
To report a bug, please use the [[https://github.com/christianezeani/dokuwiki-plugin-codify/issues|issue tracker]].