• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..25-Oct-2021-

code-prettify/H30-Sep-2019-9,1195,753

conf/H30-Sep-2019-3614

lang/en/H30-Sep-2019-207

syntax/H30-Sep-2019-237148

README.mdH A D28-Sep-20191 KiB3524

action.phpH A D28-Sep-20192.9 KiB8555

all.cssH A D28-Sep-20191.2 KiB4439

plugin.info.txtH A D28-Sep-2019266 87

script.jsH A D28-Sep-2019411 1810

README.md

1DokuWiki plugin Code Prettifier
2===============================
3
4syntax highlighting of source code snippets in wiki page, using [Javascript code prettifier](https://github.com/google/code-prettify) (former google-code-prettify).
5
6
7Usage/Example
8-------------
9
10```
11<Code:php linenums:1 |Example #1 Our first PHP script: //hello.php//>
12<html>
13  <head>
14  <title>PHP Test</title>
15 </head>
16 <body>
17 <?php echo '<p>Hello World</p>'; ?>
18 </body>
19</html>
20</Code>
21```
22
23![Example #1](code-prettifier-example.png "output of Example #1")
24
25
26----
27Licensed under the GNU Public License (GPL) version 2
28
29The [Javascript code prettifier](https://github.com/google/code-prettify), which was once known as "google-code-prettify", is a javascript module and CSS file that allows syntax highlighting of source code snippets in an html page. They are separetely licenced under the Apache License, Version 2.0
30
31More information is available:
32  * https://www.dokuwiki.org/plugin:codeprettify
33
34(c) 2015-2019 Satoshi Sahara \<sahara.satoshi@gmail.com>
35