wxHTMLPygmentizer is a simple graphical interface that allows users to input code, either by selecting files or pasting from the clipboard, and then syntax-highlight that code based on the content-type, and finally output the code to HTML.
This program is a utility. Utilities are like tools in that they (usually) have a specific task or group of tasks to perform. I needed to have a mechanism to colorize code that I wanted to include in articles on my website. After some research, I was directed by some savvy Pythoners to the pygments library. pygments it turns out is exactly what I was looking for. I wrote a bit of code to play with the library a bit and was impressed with pygments' robust design. I immediately saw the potential for a graphical interface that would provide functionality to decrease time spent colorizing code and increase potential usage of pygments itself. Having a strong interest in wxPython, I started to write wxHTMLPygmentizer.
I hope that it is of use to you and if you encounter any bugs or have suggestions/ comments, please send me an e-mail, colin DOT barnette AT gmail
Features of wxHTMLPygmentizer
- Maintains a preferences file that will save users' options, allowing for quick colorizing and homogeneity between sessions.
- Users can input code directly from the clipboard and/or select a batch of files to process. This file list can be saved in the preferences.
- Users can select an output directory to place the HTML files in, which can also be saved in preferences.
Future Features - "Todo"
- Increase support for more pygments configuration options.
- Include additional pygments output formats. (Probably need a name change when that happens..)
- Allow a preferences file to be saved by the user and add support for the user-loading of preferences.
- Add a preview pane that would show the user a snippet of code they have entered, formatted with the selected options.
Download
The current version is 0.1.0.
Prerequisites
- Python 2.x @ http://www.python.org/download
- wxPython @ http://www.wxpython.org/download.php
- pygments @ http://pygments.org/download/
wxHTMLPygmentizer 0.1.0
Screenshot
