Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Associations
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Niksan
New Member

4 Posts

Posted - Oct 18 2007 :  11:46:57 AM  Show Profile  Reply with Quote
Hi, not sure if you can do this anyway, but we have a custom script format which is almost C/C++ like, but it would be great if we could set an association to our extension to use its own .VA and .TPL file, as currently I can't see anyway to do this short of the reg hacks to make it appear to be a genuine C++ file, but this means we would get all the extra bits we don't want exposed.

Is there anyway to do what I'm trying to do, or maybe an option in the future for associations ?

Regards.

Niksan
New Member

4 Posts

Posted - Oct 19 2007 :  10:46:56 AM  Show Profile  Reply with Quote
Ok, I thought I'd try the different c++ registry hack, but with vb files as we never use vb so I though I could use those, so I copied the registry entries for vb for visual studio adding the same guid vb uses, it picks up the .VA file fine and all the correct keywords are highlighted etc, however the TPL files don't seem to be used or at least typing in the shortcut for the dropdown, the dropdown doesn't appear, so how does VA know which TPL to use ? it it based on the editor that is used or is it paired up with the extensions set within visual studio ?
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Oct 19 2007 :  12:07:36 PM  Show Profile  Reply with Quote
Good one.

Based on file extensions - you'll need to edit two reg entries:
http://docs.wholetomato.com?W328
Go to Top of Page

Niksan
New Member

4 Posts

Posted - Oct 19 2007 :  12:33:40 PM  Show Profile  Reply with Quote
My eyes will apologize, they failed to see beyond the "If file is a header" :) thanks for that.

would be nice if you could parse all Ext* in the registry tho so we could have proper custom .VA and .TBL files. ;)
Go to Top of Page

Niksan
New Member

4 Posts

Posted - Oct 22 2007 :  05:47:47 AM  Show Profile  Reply with Quote
OK, that all works OK, however, because I'm telling it to use VB as a base, is there anyway I can put in any prototypes for functions, like c++ would have in headers and the like ?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 22 2007 :  1:49:22 PM  Show Profile  Reply with Quote
You can have a class in VB.NET, so you can have your class containing your member functions at the top of the file, and then use them further down the file. This might do what you want.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000