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 >> visualpython-discuss
visualpython-discuss
[Visualpython-discuss] Enabling Syntax Coloring For .pyw Files To VS .NET 2003
by Martin Miller other posts by this author
Feb 20 2004 8:59PM messages near this date
view in the new Beta List Site
[Visualpython-discuss] Intellisense in other mdoules | ActiveState releases new MSI for Visual Python 1.8.1
As a relative newbie to Visual Python, soon after installing 1.8.1 
release I noticed that syntax coloring wasn't on when editing .pyw 
files, although they seemed to run OK.

Unable to find a way to turn on the feature in Visual Studio .NET 2003, 
I came up to the following registry hack:

=== contents of pyw.reg file
>  Windows Registry Editor Version 5.00
>  
>  [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File Extensions\.pyw]
>  @="{ACC710C8-AB81-4757-9F20-F006F96004D7}"
>  "Name"="PythonLangSvc Package"
>  
=== end contents of pyw.reg file

Essentially all this does is dup the HKLM\...\File Extensions\.py key in 
a new key with the name ".pyw".

-Martin

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved