What is the 'real' question here? F# has syntax coloring in VS now (and has had it for many releases), so I am unclear what you are asking about.

By default, keywords and preprocessor tokens are blue, comments are green, string/char literals are red, #if-ed out code is gray, most other stuff is black, and this is customizable through the usual VS menus (tools\options\environment\fonts and colors\text editor display items).

By on 10/23/2009 12:30 PM ()

The "Fonts and Colors" operator colors don't work with F#.
I'd like to have the operators in purple while the identifiers stay black like any other VS language.

By on 10/23/2009 12:45 PM ()

I understand now. You're right, we don't currently support it; I'll file a suggestion to support it, though I'm not sure it will make it into the VS2010 release.

It also might be possible to do this as an extension (with the new MEF/WPF/editor extensibility in VS2010, which I know little about).

By on 10/23/2009 12:59 PM ()

I tried changing identifier color to something else and the operators stayed black while the identifiers changed colors, I also tried changing some other items' colors but there didn't seem to be anything that was wired to F# operators other than plain text.

So I think it's a bug that the F# operator colors aren't wired to anything in "Fonts and Colors"

By on 10/23/2009 1:17 PM ()

Wow, I took a look at our implementation, and in fact operators (and numeric literals, and possibly a few other things) are currently controlled by the 'plain text' color (which appear to control e.g. semicolons and parentheses in C#).

Hm, ok, we'll take an even closer look at all this; thanks for the feedback.

By on 10/23/2009 1:36 PM ()

Let me also add that I only tested this using the CTP on VS2008.

By on 10/23/2009 2:08 PM ()

Thanks for the quick response.

By on 10/23/2009 1:38 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper