plugin:codeprettify
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:codeprettify [2015-01-24 10:41] – [Examples/Usage] s.sahara | plugin:codeprettify [2018-05-28 20:41] – [Installation] Klap-in | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : sahara.satoshi@gmail.com | email : sahara.satoshi@gmail.com | ||
type : syntax | type : syntax | ||
- | lastupdate : 2015-01-24 | + | lastupdate : 2018-05-02 |
- | compatible : Hrun | + | compatible : Hrun, 2015-08-10, 2016-06-26, 2017-02-19 |
depends | depends | ||
conflicts | conflicts | ||
Line 23: | Line 23: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
+ | |||
+ | Note: After updated to 2015-09-12 release, you can remove older " | ||
===== Feature ===== | ===== Feature ===== | ||
- | This plugin enable syntax highlighting of code snippets in your page using [[https://code.google.com/p/google-code-prettify/|google-code-prettify]]. This plugin package includes | + | This plugin enable syntax highlighting of code snippets in your page using [[https://github.com/google/ |
* You can configure Code Prettifier plugin to override DokuWiki built-in syntax '' | * You can configure Code Prettifier plugin to override DokuWiki built-in syntax '' | ||
Line 36: | Line 38: | ||
* 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 \\ 1) '' | ||
- | * 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 62: | Line 64: | ||
^ Config key ^ Description | ^ Config key ^ Description | ||
|'' | |'' | ||
- | |'' | + | |'' |
- | |'' | + | |'' |
- | |'' | + | |'' |
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
- | Detail information of the google-code-prettify | + | Detail information of the Javascript |
- | * http://google-code-prettify.googlecode.com/svn/trunk/README.html (README) | + | * https://github.com/google/code-prettify/ |
- | This plugin package contains some skins those found in [[http://google-code-prettify.googlecode.com/svn/trunk/ | + | This plugin package contains some skins those found in [[https://cdn.rawgit.com/google/ |
* desert.css | * desert.css | ||
* doxy.css | * doxy.css | ||
- | * sons-of-obsiden.css | + | * sons-of-obsidian.css |
* sunburst.css | * sunburst.css | ||
+ | |||
+ | Other color themes for Prettify will be found at http:// | ||
Line 83: | Line 90: | ||
=== 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. | ||
+ | </ | ||
+ | |||
===== Known Bugs and Issues ===== | ===== Known Bugs and Issues ===== | ||
Line 90: | Line 105: | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
+ | Using current dokuwiki theme and prettifyer with <Code linenums> | ||
+ | line. | ||
+ | |||
+ | To solve just add | ||
+ | '' | ||
+ | to lib/ | ||
plugin/codeprettify.txt · Last modified: 2023-12-04 19:42 by 2607:f8d8:2:1:dda3:ffb:6ae1:ebca