Hello,
I'd like to add reformatting capabilities to UE. I already have a tool that can reformat whole files, but I'd like to reformat just a selection, for example. I have a program that can take the code from the clipboard, reformats it and puts it back into the clipboard) and I'd like to use it.
The UE macro should do this:
- (optional) save the current clipboard content
- save the current selected text to the clipboard (this is the text that needs to be reformatted)
- launch an external application (something like reformat.exe -useClipboard)
- replace the selected text with the one from the clipboard (reformat.exe has modified the text in the clipboard and now it's nice and formatted )
- (optional) restore the previous clipboard content
Is this be possible with macros?
Thanks
I'd like to add reformatting capabilities to UE. I already have a tool that can reformat whole files, but I'd like to reformat just a selection, for example. I have a program that can take the code from the clipboard, reformats it and puts it back into the clipboard) and I'd like to use it.
The UE macro should do this:
- (optional) save the current clipboard content
- save the current selected text to the clipboard (this is the text that needs to be reformatted)
- launch an external application (something like reformat.exe -useClipboard)
- replace the selected text with the one from the clipboard (reformat.exe has modified the text in the clipboard and now it's nice and formatted )
- (optional) restore the previous clipboard content
Is this be possible with macros?
Thanks