Written by Brad Heintz, http://www.bradheintz.com
The Bold, Italic, and Underline macros take the selected text and wrap it in bold, italic, or underline HTML tags.
The Bold Last Word, Italic Last Word, and Underline Last Word macros select the previous word in your text editor (using CTRL-SHIFT-LARROW) and wrap it in the appropriate tags.
The Link macro takes the highlighted text (which should be a URL) and puts it in the href attribute of an anchor tag, closes the tag, and places the text insertion point inside the tag so you can add the link text.
All of these macros are activated by Hotkeys. Clipboard state is preserved by all these macros. They can easily be adapted to other tags or text markup languages.
Download the macro file umhtmlhelpers.mex and save it to your hard drive where you store your macro file(s). Import the macros into your existing macro file by clicking File, Import, Import Macros.
Select (highlight) your target text (if necessary) and hit the correct hotkey:
– Ctrl-Alt-Shift-[B,I,U] for [Bold, Italic, Underline]
– Ctrl-Alt-[B, I, U] for [Bold, Italic, Underline] Last Word
– Ctrl-Alt-Shift-A for Link
These macros are intended to be used in a normal Windows text editor such as Notepad, ConTEXT, SciTE, Visual Studio.NET editor, a text box on a web form, etc. Use in any other environment may produce random results.
** Brad wins a Macro Express T-shirt for his submission.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |