HOW TO: Use the F4 shortcut key to save time

Post here if your topic is about CSS HTML Validator but doesn't fit in another forum.
Post Reply
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

HOW TO: Use the F4 shortcut key to save time

Post by Albert Wiersch »

Did you know the F4 key is quite powerful, useful, and time-saving?

If you are doing a repetitive operation with a text inserter command, or a text selection or sort command then you can use F4 to quickly repeat the last command.

For example, if you want to place <code> tags around a lot of little pieces of text throughout a document then you can do the following:
  1. Make sure the HTML Inserter is visible (View > Toolbars > Inserters> HTML).
  2. Select the first piece of text in the document and choose C > <code>|</code> from the HTML Inserter.
  3. For every other little piece of text you want to surround in <code> tags, simply select it and press F4 to repeat the last text insertion command.
And don't forget the User Inserter that you can configure with your own custom pieces of text. For example, do you want to surround several pieces of text with <span class="myclass"> and </span> tags? No problem! Make sure the User Inserter is visible (View > Toolbars > Inserters > User) and edit its config file (User > Edit Configuration) by adding a line like this:

Code: Select all

<tag menu='S' flags='32' inserttext='<span class="myclass">|</span>'/>
Then save the config file and reload it (User > Reload Configuration).
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply