Skip to content

syntax highlighting of code snippets in your page using google-code-prettify.

Notifications You must be signed in to change notification settings

ssahara/dw-plugin-codeprettify

Repository files navigation

DokuWiki plugin Code Prettifier

syntax highlighting of source code snippets in wiki page, using Javascript code prettifier (former google-code-prettify).

Usage/Example

<Code:php linenums:1 |Example #1 Our first PHP script: //hello.php//>
<html>
  <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?> 
 </body>
</html>
</Code>

Example #1


Licensed under the GNU Public License (GPL) version 2

The Javascript code prettifier, 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

More information is available:

(c) 2015-2019 Satoshi Sahara <[email protected]>

About

syntax highlighting of code snippets in your page using google-code-prettify.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published