Posted 20 years ago
by Alex_3333
I set code lower to the main form of the sample application with default sample document:
TokenStream tokenstream = this.editor.Document.GetTokenStream( 0 );
Token token = null;
while ( !( token = tokenstream.Read() ).IsEndOfDocument )
if ( token.Text == "\n" && !token.IsWhitespace )
MessageBox.Show( "Error" );
and see "Error" three times.
TokenStream tokenstream = this.editor.Document.GetTokenStream( 0 );
Token token = null;
while ( !( token = tokenstream.Read() ).IsEndOfDocument )
if ( token.Text == "\n" && !token.IsWhitespace )
MessageBox.Show( "Error" );
and see "Error" three times.