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
 Snippets in a custom language
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Devo
New Member

United Kingdom
5 Posts

Posted - Jun 09 2008 :  12:39:20 PM  Show Profile  Reply with Quote
Hi,

Question
How do I get custom Visual Assist snippets in a file with a .flow extension?

Detail
I have a custom language that we're integrating into Visual Studio as a custom project type. The files all end with .flow and have their own language (i.e. not based on C++ etc). I would like to create custom Visual Assists snippets that only appear when you are in a .flow file. I do not want the existing C++ snippets to appear when you are in a .flow project.

Thanks in advanced for your help.
Stephen

(Additional: I love Visual Assist. )

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 09 2008 :  4:57:58 PM  Show Profile  Reply with Quote
Unfortunately, you cannot use snippets in files with custom extension.

There is a feature request to be able do this:
case=195

For now, you can try out AceText for a workaround (www.acetext.com). With this software, you can insert your snippets to any text editor.
Go to Top of Page

GroovyGregory
New Member

8 Posts

Posted - Dec 03 2008 :  9:13:41 PM  Show Profile  Reply with Quote
Support!

it would be really cool to be able to make snippets for currently unsupported languages, f.ex. lua, python, css etc.
another feature-request concerning this:
- of course we have to be able to set the file-extension for the language, but would it also be possible to allow multiple "snippet-languages" per filetype? f.ex ".html" uses HTML, CSS and Javascript. ".xul" uses the same plus XUL. so it would be nice to have dialog where we can assign multiple "snippet-languages" to a filetype.

thanks!

greg
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 04 2008 :  2:57:19 PM  Show Profile  Reply with Quote
The snippet entries are stored as a plain text file, one per language, so you can merge them if you would like to.

Here is a FAQ entry about how can you manually edit VA Snippet entries:

http://support.wholetomato.com?W434
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 04 2008 :  3:43:03 PM  Show Profile  Reply with Quote
Note that in VA 10.5, HTML and JS snippets are defined in separate files but VA makes them available according to the current context (js snippets are offered in script blocks within html and asp files).
Go to Top of Page

Devo
New Member

United Kingdom
5 Posts

Posted - Dec 05 2008 :  03:44:24 AM  Show Profile  Reply with Quote
You mentioned there is a feature request (case=195) for this issue - is this something we can track online? Or is it purely an internal thing for your developers?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 05 2008 :  08:15:25 AM  Show Profile  Reply with Quote
The case numbers refer to our bug tracking database, which is private:

http://docs.wholetomato.com?W318

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