Posted 17 years ago
by Michel van den Berg
Dear actipro,
I have a memory stream containing the following:where [] is a carriage return.
I got this content by doing:where stream is the memorystream.
However, when opening that stream usingI see this in the syntaxeditor:
Notice the [] (carriage return) at the last line! It seems that the syntaxeditor does convert the first 4 carriage returns, but for the last two, it fails somehow.
The content does display ok using the immediate window of VS2005.
I have a memory stream containing the following:
Public Class $itemname$[][][][]End Class[][]
I got this content by doing:
Dim reader As New IO.StreamReader(stream)
Dim content As String = reader.ReadToEnd
Microsoft.VisualBasic.Asc(content.Chars(23)) ' result is ascii code 16 = carriage return
However, when opening that stream using
Me.syntaxEditor.Document.LoadFile(stream, System.Text.Encoding.Default)
Public Class $itemname$
End Class
[]
The content does display ok using the immediate window of VS2005.