Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 30th, 2012  |  syntax: None  |  size: 1.41 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <title>My awesome homepage</title>
  5.  
  6.     <script type="text/javascript">
  7.  
  8.       (function(){
  9.  
  10.         // Press ci" (Change In quotes) with the cursor between
  11.         // the quotes below to remove the text and be left in insert mode
  12.         var welcomeMessage = "Welcome to my homepage!";
  13.  
  14.         // Press ci( (Change In braces) with the cursor between the braces
  15.         // below to remove the text between the braces and be left in insert mode
  16.         alert(theWrongVariable);
  17.  
  18.       })();
  19.  
  20.       // Now press di{ (Delete In curly braces) with the cursor
  21.       // inside the function body above to remove it
  22.  
  23.     </script>
  24.  
  25.   </head>
  26.   <body>
  27.  
  28.     <!-- Press cit (Change In Tag) with the cursor between the h1
  29.          tags to delete the text and be left in insert mode -->
  30.     <h1>This is the heading</h1>
  31.  
  32.     <!-- Press yat (Yank Ambient Tag) with the cursor between the p
  33.          tags to yank the whole block including the p tags -->
  34.     <p>
  35.       This is the first paragraph.
  36.       It's a pretty boring paragraph.
  37.     </p>
  38.  
  39.     <!-- Press cat (Change Ambient Tag) with the curor between the em tags to
  40.          remove the text including the em tags and be left in insert mode-->
  41.     <p>
  42.       This is the <em>second paragraph</em>
  43.     </p>
  44.  
  45.     <!-- Now press dit (Delete In Tag) with the cursor down here
  46.          to remove everything between the body tags -->
  47.  
  48.   </body>
  49. </html>