Ok, firstly I want to start a project for a live html editor.
Before anybody bitches there is plenty, I want this to be truly live! That means every time you type, or delete a character, the preview updates! I also like the idea of having my own project, because I can maintain it myself.
So firstly this is my preview to show the basics of the program [B]THE UI IS IN NO WAY COMPLETE![/B]
[IMG]http://img18.imageshack.us/img18/7003/54466749.jpg[/IMG]
While I could have the program constantly write the html file to the hard disk, and then read it back into the program. This will likely cause program stutter while the use is typing (not to mention it's very bad practice!).
Would it be better to just read/write to a temp file on the HDD like I'm trying to get away from above? else is there a way I can have the file stored/read/and written in the memory? ( if so, can somebody provide some light on how I would go about doing this in VB, or C#?
if I can manage to get this project off the ground, I'll likely find ways to hook in PHP support, add in a proper WYSIWYG editor, etc. not to mention it would all be open-source within the facepunch community.
If you're using the Systen.Windows.Forms.WebBrowser control, then [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.documenttext(v=VS.100).aspx]the DocumentText-property[/url] will be what you want.
[code]
myWebBrowser.Document.OpenNew(true).Write("html goes here");
[/code]
If you just want to modify the contents of the document inside the <body> tag, just modify WebBrowser.Document.Body.InnerHtml
I did the exact same thing a while back. I also used DocumentText to power it though though the reload sound got annoying. You will also need to note though you can make JavaScript it is very easy to slow these programs with more complex html.
I thought Dreamweaver did that?
[QUOTE=Xeon06;23221465]I thought Dreamweaver did that?[/QUOTE]
Dreamweaver's design view is shit
[QUOTE=turb_;23222593]Dreamweaver's design view is shit[/QUOTE]
/me shrugs.
Probably beats a split container with a browser and textbox. Doesn't beat Notepad++ and a REAL browser.
You shouldn't care what it looks like until you start styling it anyway. And for that, there's Stylizer. Up until then it's all about structure.
Sorry, you need to Log In to post a reply to this thread.