Posted 19 years ago
by Carl Gilbert

Hi
I am using a custom parser so I can override GetTokenOutliningAction. I am loading script back into the editor and using the SemanticParseData in each token to determine where to start and end the outlining. However, the GetTokenOutliningAction sub is not called until I hit return after loading the editor.
Note: I am loading the script back into the editor by calling editor.Document.Text = myScript then then going through the tokens setting the SemanticParseData on each token.
Is there anyway to GetTokenOutliningAction to run without the user having to do anything after the editor had loaded up?
Also, is there anyway to automatically collapse an outlining region when the start and end has been located? This isn't that important however as I think it could be more annoying than anything else as I think my code keeps moving the end node as tokens are inserted.
Cheers, Carl Gilbert
I am using a custom parser so I can override GetTokenOutliningAction. I am loading script back into the editor and using the SemanticParseData in each token to determine where to start and end the outlining. However, the GetTokenOutliningAction sub is not called until I hit return after loading the editor.
Note: I am loading the script back into the editor by calling editor.Document.Text = myScript then then going through the tokens setting the SemanticParseData on each token.
Is there anyway to GetTokenOutliningAction to run without the user having to do anything after the editor had loaded up?
Also, is there anyway to automatically collapse an outlining region when the start and end has been located? This isn't that important however as I think it could be more annoying than anything else as I think my code keeps moving the end node as tokens are inserted.
Cheers, Carl Gilbert