Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have a html file say example.htm. can i load the contents of this html file to my textbox with same text colors and style?
Posted
Comments
Rajesh Anuhya 20-Jun-13 7:09am    
Not Clear

You cant do it in TextBox. But can use browser control to do it.
 
Share this answer
 
Yes, you can load content html in your text box. But it will not show any style. only raw html.
If you want to show the style load the html in a div instead.
Use textbox only to edit the html.

Hope this will help you.
 
Share this answer
 
If you want to display html page inside another html page then you should use iframe.
http://www.w3schools.com/html/html_iframe.asp[^]
If your requirement is to show the html tags, then use CDATA.
If you need syntax highlighting then use syntax highlighter http://alexgorbatchev.com/SyntaxHighlighter/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900