Tamar,
Ok, now I know why I was confused. I usually block code that is to be modified with a "*{ 01/01/02 fj " and end the block with the same thing except I use a closing brace "*} 01/01/02 fj"
What I am trying to do is to select a block of code and when I press a function key, it will copy the selected text to the clipboard, put in my comments, then insert the text from the clipboard back into the editor. This way, I now have the code I am going to edit nicely marked.
The chg approach works fine for a standard comment, but I can't figure out how to set it so that it will mark a given block of text. I can select the text first, but I still don't know how to proceed from there.
One option may be to use both. A function key that will copy the selected text to a clipboard, then enter in something like chg which will then let intellisense do the rest. And then I will have a way to reference the editor and tell it to refresh itself....
Thanks,
Fletcher
>>Ok, stupid question. I have used Intellisense for keyboard shortcuts, etc. that respond to the keys I type. I first tried Intellisense, but couldn't figure out how to get it to work in this particular situation. In this case, I wanted to select some text, then press a key that would put comment blocks around that text. In my case, the code in the function key was:
>
>Open the IntelliSense Manager. Click on the Custom tab. In the Replace textbox, type the text string you want to trigger the behavior. For example, I have the script I posted set to "chg".
>
>Click Add to add the record. Now click Script and put your script in the window that appears. When you close the window, it's saved.
>
>Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement