plugin:codeprettify
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:codeprettify [2015-06-29 12:07] – link fix s.sahara | 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 : 2015-01-24 | + | lastupdate : 2019-09-29 |
- | compatible : Hrun | + | 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 " | ||
+ | |||
+ | < | ||
+ | Test of text | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
===== Feature ===== | ===== Feature ===== | ||
- | This plugin enable syntax highlighting of code snippets in your page using [[https:// | + | This plugin enable syntax highlighting of code snippets in your page using [[https:// |
* 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 '' | ||
- | * Google-code-prettify | + | * Prettify |
- | * To specify language hint for Prettify, you can use \\ 1) '' | + | * To specify language hint for Prettify, you can use |
- | * For example, use '' | + | - '' |
- | * use '' | + | - '' |
- | * If you want to add title for code block, you can specify it after '' | + | * For example, use '' |
+ | * use '' | ||
+ | * If you want to add title for code block, you can specify it after '' | ||
Line 62: | Line 74: | ||
^ Config key ^ Description | ^ Config key ^ Description | ||
|'' | |'' | ||
- | |'' | + | |'' |
- | |'' | + | |'' |
- | |'' | + | |'' |
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
- | Detail information of the google-code-prettify | + | Detail information of the Javascript |
* https:// | * https:// | ||
Line 75: | Line 90: | ||
* sons-of-obsidian.css | * sons-of-obsidian.css | ||
* sunburst.css | * sunburst.css | ||
+ | |||
+ | Other color themes for Prettify will be found at http:// | ||
Line 80: | Line 97: | ||
=== Change Log from github repository === | === Change Log from github repository === | ||
+ | |||
{{rss> | {{rss> | ||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
+ | |||
+ | * Collapse/ | ||
+ | * follow recent updates of [[https:// | ||
===== FAQ ===== | ===== FAQ ===== | ||
+ | |||
+ | ==== Non-highlight code block ==== | ||
+ | |||
+ | use '' | ||
+ | < | ||
+ | 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 ===== | ||
+ | |||
+ | Using current dokuwiki theme and prettifyer with <Code linenums> | ||
+ | line. | ||
+ | |||
+ | To solve just add | ||
+ | '' | ||
+ | to lib/ | ||
plugin/codeprettify.1435572425.txt.gz · Last modified: 2015-06-29 12:07 by s.sahara