views:

82

answers:

1

hi there. i am writing an HTML editor and would like to make a section so that you can view how it would look in web browser directly in the program is this possible?

Thanks so much

+2  A: 

I wouldn't do this - your renderer will quickly differ from real browsers.

Rich Bradshaw
Not really. You can have, on Windows, probably a COM interface to IE, and there is a Webkit binding for Python as well. So you can in theory just embed a real browser :)
extraneon
That is two browsers (or versions of)... and the COM interface for IE, if I understand you correctly, will be for ONE version. Currently there are 3 versions commonly supported by websites - 6, 7 and 8. For Firefox there is 2 and 3 (and 3.5 / 3.6 if you count them as versions too), Opera there is 8, 9 and 10 and god knows how many more other browsers. In the time it takes to cover all browsers, something like 5 more browsers or versions of browsers would have been released, making your application out of date. Not good news for developers who like to keep in date.
ClarkeyBoy