PrettyCode - butscher/WikidPad GitHub Wiki
PrettyCode is syntax highlighting plugin, which enables using Wikidpad as a well-organized code-snippets repository. This plugin was made by user sweinst2000. Unfortunately it was only referenced in the Yahoo mail group, so it was not easy to find information on that plugin.
Almost all information in this page is copied from mailing-list messages from 2008...
The plugin works best with external preview (IE). It also works with internal preview, but background colors will not be available.
- Download the plugin file prettyCode.py from [http://tech.groups.yahoo.com/group/wikidPad/files/plugins]
- place it in the "user_extensions" directory of your Wikidpad installation
- get the latest egg for pygments at [http://pypi.python.org/pypi/Pygments]
- go the folder extension of your wikipad distribution/sources. Create a sub-folder "lib"
- copy the pygments egg to the new sub-folder
- if you are using a binary distribution, you may have also to copy the python modules:
- "commands": [http://svn.python.org/view/*checkout*/python/trunk/Lib/commands.py]
- "HTMLParser": [http://svn.python.org/view/*checkout*/python/trunk/Lib/HTMLParser.py]
- "markupbase": [http://svn.python.org/view/*checkout*/python/trunk/Lib/markupbase.py]
Note: I had to move the commands.py also into the "lib" directory.
Download [https://www.dropbox.com/s/rq9tcnihrz5ftri/PrettyCode20170523_basedOn_2.2.0.zip?dl=0], place it in the "user_extensions" directory of your Wikidpad installation (you may have to create this folder) and restart WikidPad if it was running. If you have problems with this variant of the plugin, use mailing list [http://groups.yahoo.com/group/wikidPad/] or contact [mailto:[email protected]].
Previous version is available at [https://www.dropbox.com/s/4x3dj1ijctcb8jz/PrettyCode20140327.zip?dl=0].
- wiki syntax:
[:pc:/// .....code..... :::options1=val1;options2=val2;...///]"
- options:
- lang: the name of the programming language (see the plugin options panel for a list of these) (default: see the plugin options panel)
- showLines: 0 if the line numbers should not be displayed, a non-zero value otherwise (default: see the plugin options panel)
- startLine: the number of the first line (default: 1)
- hlLines: a comma separated list of line numbers to highlight (default: none)
- bkg: the Id of a background defined in the options panel,
- "default" for the default background (or no bkg option),
- an empty string for no background
- menu entries:
- paste the clipboard contents as a code with the default options set in the plugin options panel
- surround the selection with the appropriate tags, option values are the default options set in the plugin options panel
For the new plugin variant "!PrettyCode20130324.zip" an alternative syntax is
[:pc:/// .....code..... ///;options1=val1;options2=val2;...]"
with the same options