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
 Technical Support
 How to add a new snippet root in VA Snippet Editor
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

psteiner
New Member

2 Posts

Posted - Jun 01 2011 :  1:37:38 PM  Show Profile  Reply with Quote
Using Visual Assist X version 10.5.1724.0 with Visual Studio 2008 on Windows XP SP3

I am using VS2008 as an XML/XSLT editor. I would like to create VA snippets in a new "XSLT" snippet root.

I started by creating a sample XSLT snippet in the existing XML root in VA Snippet Editor:

a:apply-templates:atm:
<xsl:apply-templates select="$Node$" mode="$Mode$"/>

Next, I created a new file for XSLT snippets as %APPDATA%\\VisualAssist\\Autotext\\xslt.tpl. I then copied and pasted the sample XSLT snippet and its termination character into xslt.tpl. I also copied the file to C:\\Program Files\\Visual Assist X\\AutoText\\xslt.tpl. Even after clearing the VA symbol cache and restarting VS, I did not see XSLT added to the list of snippet roots in the VA Snippet Editor.

Is there some other configuration change needed to add a new snippet root, or is this just not possible? If not, I will continue to use the XML root.

Thanks

Philip

*moved to the general release section by feline*

Edited by - feline on Jun 02 2011 08:58:57 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 01 2011 :  4:29:25 PM  Show Profile  Reply with Quote
Sorry, but as far as I know, it isn't possible.
Go to Top of Page

psteiner
New Member

2 Posts

Posted - Jun 01 2011 :  4:35:41 PM  Show Profile  Reply with Quote
OK, no problem, thanks for the speedy reply. I will add this to the VaX wish list.

Regards,

Philip
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18958 Posts

Posted - Jun 02 2011 :  09:01:21 AM  Show Profile  Reply with Quote
Is VA working for you in your XSLT files? This is not an extension I recognise off hand. You can tell VA to treat a new file extension as a known and supported language, so that one of the current VA Snippet nodes will work for you, as explained here:

http://docs.wholetomato.com?W353

zen is the art of being at one with the two'ness
Go to Top of Page

Nobodo
Tomato Guru

126 Posts

Posted - Jun 03 2011 :  1:54:42 PM  Show Profile  Reply with Quote
psteiner,
for xml/xslt snippets you might want to check out the 'snippet designer' -- http://snippetdesigner.codeplex.com/
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