Bug 11245 - Text not displaying properly in custom syntax mode
Summary: Text not displaying properly in custom syntax mode
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.2
Hardware: Other Other
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2013-03-18 21:23 UTC by Michael Poulshock
Modified: 2013-03-19 01:44 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Syntax highlighting add-in (1.56 KB, application/octet-stream)
2013-03-18 21:23 UTC, Michael Poulshock

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Michael Poulshock 2013-03-18 21:23:01 UTC
Created attachment 3647 [details]
Syntax highlighting add-in

Is there a new format for defining syntax modes in Xamarin Studio?  I have a syntax mode XML file that works in Xamarin Studio 4.0.1, but it stopped working when I upgraded to 4.0.2.

I noticed that you changed the format of syntax highlighting color scheme files from XML to JSON, and I'm wondering if something similar happened with the syntax highlighting files.

I'm attaching the entire .mpack file, which enables syntax highlighting for files with an .akk extension.

And here's sample text that does not appear completely when the add-in is installed:

# Household size
Tnum HouseholdSize(Thing p) =

Thanks for your help.
Comment 1 Mike Krüger 2013-03-19 01:43:56 UTC
Only the color scheme names changed & some colors were added. I wanted to be a bit more compatible to vs.net. 

I don't think that the syntax highlighting files are better as JSON because I need the xml structure there. That wouldn't map cleanly in JSON.

The color names changed slightly to make it easier to use the colors as well. For syntax modes it should be done with some renames -  btw. the DefaultStyle.json is a good reference because it now contains all available colors.
Comment 2 Mike Krüger 2013-03-19 01:44:27 UTC
btw. the color changes should've been included in 4.0 but were finished too late :/