![]() |
|
|
/Software/Tagging Service |
|
||||
About this service TagService was designed to save time when coding HTML. TagService will HTML tag the selected text. To determine what kind of tag to use the service searches for a colon - text before the colon is used as the Tag-Text. Example: You select the phrase "em:Hello world" in TextEdit (or any other GUI-based text editor) then select the "Tag Text" Service from the Services Menu. The "Hello World" text would then become "<em>Hello World</em>". The service has a keyboard short-cut of Command-Shift-\ (backslash) which is equivalent to Command-| (Pipe). Basically to tag some text - preceed it with the tag you wish and a colon - then select it all and press Command-Shift-/. So to tag an entire para of plain text, just add p: to the start and select it all then invoke the service. Unusual Tags img tags - if you choose img as the tag then the selected text will be used as the url for the src of the image. e.g. img:foo becomes <img src="foo" alt="" />. a tags - if you choose a as the tag then the selected text will be used as the text for a hyperlink. e.g. a:foo becomes <a href="">foo</a>. url tag - if you use url as the tag then the selected text will be used as the address for a hyperlink. e.g. url:foo becomes <a href="foo"></a>. Demo If you'd like to see a practical example of what the service does: See a Demo Here. Where to install the Service The Service should be put in the following location: ~/Library/Services/ If you are the administrator of a multi-user machine and you wish every user to be able to access the Service, then you should put the service in the following location: /Library/Services/ A note about the Keyboard Shortcut The Keyboard Shortcut is only available if the front application has not used that shortcut for itself. Panther's TextEdit and Safari are both examples of this. It has also come to my attention that certain keyboards lack the \ key. If you wish to change the keyboard shortcut you can do the following:
n.b. you are only allowed one character for the shortcut - e.g. "2" is equivalent to Command-2 but "@" would be equivalent to Command-Shift-2 |
||||
|
Changelog.
|
||||
|
This Service is freeware. If the download is slow - use the mirror at my .mac page |
||||