Author |
Topic |
|
Niksan
New Member
4 Posts |
Posted - Oct 18 2007 : 11:46:57 AM
|
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
|
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 ? |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
|
Niksan
New Member
4 Posts |
Posted - Oct 19 2007 : 12:33:40 PM
|
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. ;) |
|
|
Niksan
New Member
4 Posts |
Posted - Oct 22 2007 : 05:47:47 AM
|
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 ? |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Oct 22 2007 : 1:49:22 PM
|
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 |
|
|
|
Topic |
|