How to use the F4 shortcut 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
Site Admin
Posts: 3324
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

How to use the F4 shortcut to save time

Post by Albert Wiersch » Mon Mar 07, 2016 9:36 am

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).
Image
Albert Wiersch

Post Reply