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
 Placement of paired HTML-tags
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Dec 09 2008 :  04:47:18 AM  Show Profile  Reply with Quote
Consider this simple example.
|text

Now I want to make it bold and type '<strong>'. VC++ produces this:
<strong>|</strong>text

I find this very annoying! It would be better if paired tags moved the word _directly_ after the cursor inside the tags. Hence, if there was a whitespace before "text", it would not perform this.

<strong>|text</strong>

I believe VAX could accomplish this quite easily.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 09 2008 :  3:59:35 PM  Show Profile  Reply with Quote
You can do it by VA Snippets, I wrote this one for you:

<$tag$>$selected$$end$</$tag$>

It will automatically appear in the menu:

Right click on selection -> Surround With (VAX)

Ok, it's a bit slow to do, but we can use a trick to speed it up: if you overwrite the content of snippet "#ifdef (VA X)" then you can "run" it by pressing the # key:

1. Select the text (if your text is a word then it can be done by double-clicking on it)
2. Press #
3. Type your tag
4. Press ENTER

You can access snippet editor here:

VA Options -> Advanced -> Suggestions -> Edit VA Snippets (button)

Edited by - accord on Dec 09 2008 5:06:55 PM
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