• Home
  • Products
    • Game Engine
      • Base
      • Mathematics
      • Geometry
      • Physics
      • Particles
      • Animation
      • Graphics
      • Game
      • Game UI
    • Windows Forms
      • Docking Windows
      • Text Editor Control
  • Downloads
  • Buy
    • Overview
    • Professional
    • Indie
    • Non-Commercial
  • Support
    • Overview
    • Blog
    • Forum
    • License FAQ
    • Documentation
  • About
    • About Us
      • Services
    • Contact Us
    • Press
    • Legal Terms
      • Imprint (English)
      • Imprint (German)
Select the search type
 
  • Site
  • Web
Search
DigitalRune.com
Login |Register
NEWS News RSS Feed BLOG Blog RSS Feed FORUM News RSS Feed DOCUMENTATION DigitalRune Software on YouTube DigitalRune Software on Twitter
You are here: SupportForum

If you want to contribute to the forum discussions, please Register or Login.

SearchHome
  • 1
  • 2
  • 3
  • 4
  • 5
HomeHomeDigitalRune Sof...DigitalRune Sof...Text Editor Con...Text Editor Con...Supported languagesSupported languages
Previous
 
Next
New Post
8/28/2010 9:03 AM
 
FlashTek
No Ranking

Joined: 8/28/2010
Posts: 6
Supported languages 
Hello,
I want to know which languages are supported by the Text Editor Control. Is there a list where you can look which language is supported?
I hope you unterstood my question.

Many thanks,
FlashTek
 
New Post
8/28/2010 11:26 AM
 
HelmutG
6th Level Poster

www.digitalrune.com
Joined: 10/15/2006
Posts: 567
Re: Supported languages 
Hi FlashTek

Regarding Formatting and Folding:
There are special strategies for C#, HLSL and XML. See the namespaces DigitalRune.Windows.TextEditor.Formatting and DigitalRune.Windows.TextEditor.Folding.

Regarding syntax highlighting:
Have a look at the folder DigitalRune.Windows.TextEditor\Resources\. All syntax highlighting definitions are stored in this folder. The file
DigitalRune.Windows.TextEditor\Resources\SyntaxModes.xml contains a list of supported syntax highlightings.

Helmut
 
New Post
1/23/2011 8:56 PM
 
andreapav
No Ranking

Joined: 1/22/2011
Posts: 7
Re: Supported languages 
Hello.

Can I have a suggestion to add a new language? I need it to add an ISO language in my application.
I have added my classes in the Formatting and Folding sections, I've seen I need to add the new language definition in the Resources and indicate the .xshd file in syntaxmodes.xml... 
...To be honest I did a bit of confusion! And it doesn't work! There is a procedure to add it in the correct way?

Thank you.
Regards.
                                                          Andrea
 
New Post
1/24/2011 8:05 AM
 
MartinG
7th Level Poster

www.digitalrune.com
Joined: 10/15/2006
Posts: 448
Re: Supported languages 

To add syntax highlighting for a new language, do the following:

  1. Create a new "XML Syntax Highlighting Definition" file (.XSHD). (Sadly there is no documentation how the XSHD files exactly work. I recommend you take an existing XSHD file an adjust the rules and keywords to match the new language.)
  2. Add the XSHD file to the project. Put it in the folder "Resources".
  3. Open the Properties Window in Visual Studio and set the Build Action of the XSHD file to Embedded Resource.
  4. Open the file "SyntaxModes.xml" and add a new "Mode" tag for the new language.
  5. Build the project.
 
 Page 1 of 1
Previous
 
Next
HomeHomeDigitalRune Sof...DigitalRune Sof...Text Editor Con...Text Editor Con...Supported languagesSupported languages


DigitalRune is a trademark of Garstenauer Information Technology OG.

Garstenauer Information Technology OG
Weingartenstrasse 35, 4452 Ternberg
Austria (EUROPE)
office@digitalrune.com

Home Products Downloads Buy Support About Us
Game Engine Particles Windows Forms Professional Blog Services
Base Animation Docking Windows Indie Forum Contact Us
Mathematics Graphics Text Editor Control Non-Commercial License FAQ Press (News)
Geometry Game Documentation Legal Terms
Physics Game UI Imprint
Impressum
Copyright © 2006-2012 Garstenauer Information Technology OG Terms Of UsePrivacy Statement