Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Placement of paired HTML-tags

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
znakeeye Posted - Dec 09 2008 : 04:47:18 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Dec 09 2008 : 3:59:35 PM
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)

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000