Home Download Buy Blog Forum Support

PyQt4 and WebKit integration

PyQt4 and WebKit integration

Postby kib2 on Sun Jun 15, 2008 8:14 pm

Hi,

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 :
Image

Using the Pygmentize button:
Image

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\<username>\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 :

Kib.
kib2
 
Posts: 38
Joined: Sun Mar 23, 2008 8:30 am
Location: France

Re: PyQt4 and WebKit integration

Postby kib2 on Mon Jun 16, 2008 5:23 am

Hi Sublimator,

sorry for the duplicate, I was aware that you build a live preview window, but not that it uses PyQt4.
Thanks anyway for those tips,
see you :

Kib.
kib2
 
Posts: 38
Joined: Sun Mar 23, 2008 8:30 am
Location: France

Re: PyQt4 and WebKit integration

Postby SteveCooperOrg on Tue Jun 17, 2008 7:32 am

kib -- if you want write access to the community svn, gimme a shout via a forum message, and I'll get you on.

svn: http://code.google.com/p/sublime-text-c ... -packages/
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Re: PyQt4 and WebKit integration

Postby kib2 on Wed Jun 18, 2008 4:44 pm

Hi Steve,

Sorry, I've tried to join you by PM, but it failed.
I'll be glad to be added to the svn contributors as you told me, even if I don't have much time yet.

I've seen on your blog that you're playing with Lisp : nice toy ! I'm learning it too, but I'm really a newbie.

See you,

Kib².
kib2
 
Posts: 38
Joined: Sun Mar 23, 2008 8:30 am
Location: France

Re: PyQt4 and WebKit integration

Postby SteveCooperOrg on Wed Jun 18, 2008 8:38 pm

kib -- email me at steve @att stevecooper d0tt org.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am


Return to Plugin Announcements

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests