Warning: You're looking at a styleless page because your browser is ignoring CSS styles. You're probably using a very old browser, or you disabled CSS support by purpose. We suggest you to download a modern browser such as Firefox or Internet Explorer.

Quickly insert Javascript code using a shortcut

  1. Open the preference dialog (F10)
  2. Go to Graphical User Interface -> Actions
  3. Add a new action
    1. Define caption as "Embed with JS tags"
    2. Define script using the following code:
      KeyboardTemplateExpand('<script language="Javascript"  type="text/javascript"><Caret></script><DropMark>')
    3. Select the following items in the context area
      • Document language -> HTML
      • Active language -> HTML
      • Selection (will check all subnodes)
    4. Set category as "Tools / HTML"
    5. Map it to Ctrl+Shift+J in the shortcut field
  4. Close the new action dialog using the Ok button
  5. Close the preference dialog using the Ok button

Now open an new HTML document and press Ctrl+Shift+J and you'll see that new javascript tazgs will be inserted automatically for you.