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

..--

code-prettify/04-Nov-2024-9,1195,753

conf/04-Nov-2024-3614

lang/en/04-Nov-2024-207

syntax/04-Nov-2024-235148

README.mdD15-Sep-20231 KiB3524

action.phpD15-Sep-20233 KiB8456

all.cssD15-Sep-20231.2 KiB4439

plugin.info.txtD15-Sep-2023266 87

script.jsD15-Sep-2023411 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/googlearchive/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/googlearchive/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