plugin:codeprettify
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:codeprettify [2018-05-03 07:28] – Corrected 'lastupdate' LarsDW223 | plugin:codeprettify [2023-12-04 19:42] (current) – [Installation] 2607:f8d8:2:1:dda3:ffb:6ae1:ebca | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : sahara.satoshi@gmail.com | email : sahara.satoshi@gmail.com | ||
type : syntax | type : syntax | ||
- | lastupdate : 2018-05-02 | + | lastupdate : 2019-09-29 |
- | compatible : Hrun, 2015-08-10, 2016-06-26, 2017-02-19 | + | compatible : 2015-08-10, 2016-06-26, 2017-02-19, 2018-04-22a |
depends | depends | ||
conflicts | conflicts | ||
Line 23: | Line 23: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Require PHP 7.0.x or later! |
+ | |||
+ | Search and install | ||
Note: After updated to 2015-09-12 release, you can remove older " | Note: After updated to 2015-09-12 release, you can remove older " | ||
+ | |||
+ | < | ||
+ | Test of text | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
===== Feature ===== | ===== Feature ===== | ||
Line 33: | Line 43: | ||
* You can configure Code Prettifier plugin to override DokuWiki built-in syntax '' | * You can configure Code Prettifier plugin to override DokuWiki built-in syntax '' | ||
* you may use skin (css file) for code block. | * you may use skin (css file) for code block. | ||
- | |||
- | |||
===== Examples/ | ===== Examples/ | ||
* Enclose code snippets using '' | * Enclose code snippets using '' | ||
* Prettify module makes a best effort to guess the language but works best with C-like and HTML-like languages. | * Prettify module makes a best effort to guess the language but works best with C-like and HTML-like languages. | ||
- | * To specify language hint for Prettify, you can use \\ 1) '' | + | * To specify language hint for Prettify, you can use |
+ | - '' | ||
+ | - '' | ||
* For example, use '' | * For example, use '' | ||
* use '' | * use '' | ||
- | * If you want to add title for code block, you can specify it after '' | + | * If you want to add title for code block, you can specify it after '' |
Line 87: | Line 97: | ||
=== Change Log from github repository === | === Change Log from github repository === | ||
+ | |||
{{rss> | {{rss> | ||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
+ | |||
* Collapse/ | * Collapse/ | ||
* follow recent updates of [[https:// | * follow recent updates of [[https:// | ||
===== FAQ ===== | ===== FAQ ===== | ||
+ | |||
==== Non-highlight code block ==== | ==== Non-highlight code block ==== | ||
+ | |||
use '' | use '' | ||
< | < | ||
This is not any kind of code. | This is not any kind of code. | ||
+ | </ | ||
+ | |||
+ | ==== Geshi options in DowkuWiki ==== | ||
+ | |||
+ | DowkuWiki suppports some [[: | ||
+ | since its 2018-04-22 release (Greebo). The extra Geshi options are to be specified inside '' | ||
+ | The code prettifier plugin should also recognize them, and following example will work fine for both DokuWiki original syntax and code prettifier plugin (except '' | ||
+ | |||
+ | <Code C [enable_line_numbers=1, | ||
+ | void main () { | ||
+ | printf (" | ||
+ | exit 0; | ||
+ | } | ||
</ | </ | ||
===== Known Bugs and Issues ===== | ===== Known Bugs and Issues ===== | ||
- | see also: https:// | + | |
+ | See also: https:// | ||
===== Discussion ===== | ===== Discussion ===== |
plugin/codeprettify.1525325335.txt.gz · Last modified: 2018-05-03 07:28 by LarsDW223