How to add a new file association

Started by Arthur, August 12, 2009, 05:51:54 PM

Previous topic - Next topic

Arthur

On and off I use several different tools that generate files with extensions .rpt and .qry.
I would like to open these files for editing with HE straight.

I can see there is a dialog (Tools -> File Associations) allowing one to associate some pre-filled file extensions with HE. Say a .sql file can become edited with HE instead of SQL Server client tool.
Besides, I do not see why it it would be wise to have .bat or .cmd files associated with HE (may be a potential issue there), but my post is not about this.

So, I do not see a way of adding my own extensions or is there?

PS: .qry is the same as .sql files containing some SQL code.

alex

Hi Arthur,

File association dialog is generic tool, which just list all known by HE file extensions (read from syntax schemes)  and allow you to associate \shell\open\command of them to HE. What to associate and what not - is a decision of user.

About new file association. Just go to Tools->Options->Syntax Settings, select syntax for new file association be assigned and add your extension Miscellaneous tab.

Best regards,
Alex. 
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

Got that, thank you, done, one thing though:
when I open the file associations browser it shows .sql files are associated with PL-SQL, not what I expected T-SQL

alex

Probably the reason, is that as PL/SQL as T-SQL schema wants same extension. And first wins.
Just disable PL/SQL syntax schema in settings and you got what you want.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]