|
-
Aug 13th, 2010, 12:00 AM
#1
Thread Starter
New Member
Text editor Problem
When i finished (or i thought i finished) coding my Text editor today i ran into a problem after i saved a file i typed
<html>
<head>
<title>HI</title>
</head>
<body>
TEST
</body>
</html>
But what came out after i saved and opened in a web browser was
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} \viewkind4\uc1\pard\f0\fs17 \par \par \par \par \par TEST\par \line \par }
is there a way to fix this???
-
Aug 13th, 2010, 12:06 AM
#2
Hyperactive Member
-
Aug 13th, 2010, 12:10 AM
#3
Thread Starter
New Member
Re: Text editor Problem
 Originally Posted by wiss.dev
this is a vb forum
i know that i made it in VB
-
Aug 13th, 2010, 12:18 AM
#4
Re: Text editor Problem
You are presumably using a RichTextBox. As the name suggests, a RichTextBox works with Rich Text Format (RTF) data. RTF is similar to HTML in that it is simply text but it contains both data and meta-data, i.e. markup code that describes how the data should be displayed. If you don't want to save the RTF markup contained in the RichTextBox then you need to specify plain text as the format when saving the file.
-
Aug 13th, 2010, 02:51 PM
#5
Thread Starter
New Member
Re: Text editor Problem
 Originally Posted by jmcilhinney
You are presumably using a RichTextBox. As the name suggests, a RichTextBox works with Rich Text Format (RTF) data. RTF is similar to HTML in that it is simply text but it contains both data and meta-data, i.e. markup code that describes how the data should be displayed. If you don't want to save the RTF markup contained in the RichTextBox then you need to specify plain text as the format when saving the file.
i wanted to make file extensions such as .html and .php is there any way i could do that? i tried to use a multi lined text box but the save dialog isn't compatible
-
Aug 13th, 2010, 03:27 PM
#6
Re: Text editor Problem
The save dialog has options to change the extension type, the online help-file shows you exactly what jmc suggested. You can add multiple entries to the extention, again theres a good sample in the online help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|