ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> visualperl-discuss
visualperl-discuss
Re: [Visualperl-discuss] importing environment fonts and colors
by Eric Promislow other posts by this author
Apr 18 2005 10:14AM messages near this date
view in the new Beta List Site
[Visualperl-discuss] importing environment fonts and colors | [Visualperl-discuss] cannot view reference in object browser
Tom Humphrey wrote:
>  
>  Hello,
>  
>   I would like to set Visual Perl to have the same fonts and colors as 
>  Komodo defaults. Is this possible?

I don't know an easy way.  Visual Perl shares its settings with all the
other languages, and by default inherits the current VS values.

>  
>   I would also like to know how I can save my font and color settings so 
>  that I may quickly set them on another machine, without having to set 
>  them by hand.

The values seem to be stored in your personal VS registry area.  I haven't
done it myself, but you could try exporting these registry values to a file:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\FontAndColors\{A27B4E24-A735-4D1D-B8E7
-9716E1E3D8E0}

and then import the file in a different machine.  This is just the
color names introduced by Visual Perl -- I'm not sure where the
other values would go.

I got that GUID there from
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\FontAndColors\Text Editor\\Category

I'm not sure if that value is fixed in VS.Net 7.1 or installation-dependent, and my
VS 2005 machine is currently running Linux, and the VS 2002 machine is turned off.


>  
>   The default settings for Visual Perl's fonts and colors are horrific. 
>  Is there any way I can change these without changing them all by hand?

I'm afraid you'll have to do some digging in the registry and in Visual
Studio's own automation area.  The DTE object (Typelib
"Microsoft Development Environment 7.0") exposes a collection called
"FontsAndColorsItems", which contains a set of objects of type
"ColorableItems", but I've never worked with it, and have no other
documentation on it at hand.

Hmmm  .. property names are
String Name
OLE_COLOR Foreground
OLE_COLOR Background
boolean Bold

It looks doable, and in Perl even.  Use Win32::OLE to grab or
create a reference to a VS 7 object, get the DTE object,
find your way to the ColorableItems collection.

Hope this helps,
Eric

>  
>  Thanks!
>  
>  Tom Humphrey
>  
>  
>  _______________________________________________
>  VisualPerl-discuss mailing list
>  VisualPerl-discuss@[...].com
>  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
VisualPerl-discuss mailing list
VisualPerl-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Tom Humphrey
Eric Promislow

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved