SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: greggman on August 17, 2007, 08:02:29 AM

Title: How do I *change* an extension to another mode?
Post by: greggman on August 17, 2007, 08:02:29 AM
for example, the .s extension is assigned to "asm390". I want ".s" to use a different mode. This is probably stareing me right in the face but I can't seem to find a way to reassign ".s" to something else. Help
Title: Re: How do I *change* an extension to another mode?
Post by: hs2 on August 17, 2007, 10:04:33 AM
'Tools>Options>File Extension: Advanced tab: 'Refer to...' should do.
Maybe you need to create a 'New...' one.
HS2
Title: Re: How do I *change* an extension to another mode?
Post by: greggman on August 17, 2007, 06:08:47 PM
The refer to tab is grayed out.

Picking New.. and typing in "s" I'm told "s" already exists.

Title: Re: How do I *change* an extension to another mode?
Post by: Phil Barila on August 17, 2007, 06:28:12 PM
Which extension are you actually looking at?  The attached caps show you what you should see if your installation is still using the defaults.
Title: Re: How do I *change* an extension to another mode?
Post by: Ryan on August 17, 2007, 07:13:36 PM
The 'Refer to...' button is greyed out for an extension if anything refers to that extension.  So if you can't 'Refer to...' or 'Delete' 's', then I would think there is something that is referring to 's'.  Once you find that, you can un-refer, and the rest writes itself.

- Ryan
Title: Re: How do I *change* an extension to another mode?
Post by: greggman on August 18, 2007, 12:46:33 AM
thanks. I think I got it.
Title: Re: How do I *change* an extension to another mode?
Post by: StephenW on August 19, 2007, 09:35:13 PM
If you are mixing languages that use the same extension, then you will quickly tire of manually changing the extension settings all the time.  If you are running into that problem, then you might like to look at the macro I posted that I use to automatically override the default extension settings:

  http://community.slickedit.com/index.php?topic=1873.0