I was on Windows today, so I've made some tests with Sublime + PyQt4.
Here's a little plugin to show you that we can embed WebKit inside Sublime for a HTML preview.
At start, you'll see this :
Using the Pygmentize button:
the sources are here :http://www.mediafire.com/?lyghio3xjy9
Before using it :
- you'll need PyQt4 (latest version here : http://www.riverbankcomputing.com/static/Downloads/PyQt4/PyQt-Py2.5-gpl-4.4.3-snapshot-20080612-1.exe)
- optionnal Pygments (http://pygments.org/)
How to use it:
- Decompress all the files in "C:\Documents and Settings\Application Data\Sublime Text\Packages\User" (I'm under XP)
Inside the console, type "view.runCommand('preview')" (you can add a shortcut latter on)
- If you were editing an (X)HTML file, press the "View HTML edited..." button, you'll see it inside WebKit;
- In other cases, press "Pygmentize view" button to render a HTMLized version of the file you were editing with syntax highlighting.
There are some know problems (changing the view won't work), but I think it's a good start.
See you :