Jump to content
  • Advertisement
Sign in to follow this  
namingway

Help with making a C# html editor...

This topic is 4056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well I'm attempting to make a HTML editor with C# that can save to a .htm or .html format and has syntax highlighting. Questions: 1. how do you get horizontal and vertical scroolbars to appear with a multiline textbox? 2. How do you change the text colour of certain things as there typed like <head> or "string"? 3. How can I save to a html format? Thanks in advance :D

Share this post


Link to post
Share on other sites
Advertisement
1. In the properties of your textbox, change Multiline to True and Scrollbars to Both

2. You could have a look at this example.

3. Create a file using File.Open or something similar and write the text from your textbox into it. Make sure you create the file with a .html extension and you should be good to go.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!