This is a migrated thread and some comments may be shown as answers.

Tokenizer?

3 Answers 85 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
aedev
Top achievements
Rank 1
aedev asked on 02 Jan 2011, 05:10 PM
I'm just getting started and trying working off of the examples.  Where is the Tokenizer class?  

The following lines in CreateFormattedDocument (in the example.xaml.cs for the Document API example), is what I'm trying to build: 

            Tokenizer tokenizer = new Tokenizer();
            List<Token> tokens = tokenizer.TokenizeCode(text, fileFormat);

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 03 Jan 2011, 05:53 PM
Hi Holden Caine,

 The Tokenizer class is an internal class, included in the demos, which are downloaded if you install the controls (either automatically or manually). If you had downloaded a hotfix version (DLLs only), you can get the examples following these steps:

  1. Log in to your account at telerik.com;
  2. Click on "Download and Manage Your Products";
  3. In the "Telerik Premium Collection for .NET" section click on "Product Downloads";
  4. In the RadControls for Silverlight section opt for "Browse all product files", and you can see that demo projects are included in the Manual Installation zip;
  5. There are several Tokenizer classes in the solution, but the one you need is in the RichTextBox example.
If you have any other questions, do not hesitate to contact us again.

Greetings,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Olivier Masset
Top achievements
Rank 1
answered on 05 Sep 2012, 08:51 AM
Hello,

I cannot reach the code of the Tokenizer. Could you please send me a direct link to the file I have to download to have the code of the Tokenizer.
Thank you in advance,
Olivier

Olivier.masset@belsim.com
0
Petya
Telerik team
answered on 05 Sep 2012, 05:14 PM
Hi Olivier,

As Iva mentioned, in case you have a hotfix version of the controls, you'd have to download a zip, containing the demos. This is a link directly to your profile, where you can find the files. 

Once you've downloaded and extracted the archive, you can find the Tokenizer class here:
...\Examples\RichTextBox\Parsers\Tokenizer.cs

In case you have included the examples when installing the controls, the tokenizer should be at:
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q2 2012\Examples\RichTextBox\Parsers\Tokenizer.cs 

 I hope this answers your question! Get back to us if you need further assistance.


Kind regards,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
aedev
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Olivier Masset
Top achievements
Rank 1
Petya
Telerik team
Share this question
or