
Hello,
Back in the days with the old WinForm SyntaxEditor we could enumerate through the document's token collection and retrieve all the tokens that we wanted along with their textrange, the pattern group they belonged to etc....
The command used to be the following:Q1-
I'm looking to obtain the same thing using the WPF SyntaxEditor but am unable to. Can you point to me the new namespace where to obtain the active document tokens or/else if the system changed, can you please explain me how to go about it?
Q2-
Also, once we get our tokens, how can i obtain their text property? I can't find any method in the IToken object that returns the text of the Token?
Regards
Nassim
P.S. I have not create my own AST or Lexer/Parser.I'm using the Dynamic Language definition file to define my language.
[Modified at 12/22/2011 10:21 AM]
Back in the days with the old WinForm SyntaxEditor we could enumerate through the document's token collection and retrieve all the tokens that we wanted along with their textrange, the pattern group they belonged to etc....
The command used to be the following:
syntaxEditor.Document.Tokens
I'm looking to obtain the same thing using the WPF SyntaxEditor but am unable to. Can you point to me the new namespace where to obtain the active document tokens or/else if the system changed, can you please explain me how to go about it?
Q2-
Also, once we get our tokens, how can i obtain their text property? I can't find any method in the IToken object that returns the text of the Token?
Regards
Nassim
P.S. I have not create my own AST or Lexer/Parser.I'm using the Dynamic Language definition file to define my language.
[Modified at 12/22/2011 10:21 AM]