Posted 20 years ago
by Alex_3333
![Avatar](https://secure.gravatar.com/avatar/adf84f49a2f8fda7077a83bc1d2fed8c.jpg?s=64&d=identicon&r=g)
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.