code: function unwrapCode() {
          var container = null;
  
          if (document.selection) { //for IE
              container = document.selection.createRange().parentElement();
          } else {
              var select = window.getSelection();
              if (select.rangeCount > 0) {
                  container = select.getRangeAt(0).startContainer.parentNode;
              }
          }
  
          //'paranoic' unwrap
          var ispre = $(container).contents().closest('pre').length;
          var iscode = $(container).contents().closest('code').length;
  
          if (ispre && iscode) {
              $(container).contents().unwrap('code').unwrap('pre');
          } else if (ispre) {
              $(container).contents().unwrap('pre');
          } else if (iscode) {
              $(container).contents().unwrap('code');
          }
      }
docs: /*
  UnwrapCode
  ADD/FIX: to improve, works but can be better
  "paranoic" solution