I want to make a text box that I can manually paste text into and then click the copy button to select all the text in the box to my clipboard. But the text is in one long line, but I want it to look more like a paragraph. This is my code so far.

HTML

```html
<input type="text" value="Hello World" id="textBox" style="height:500px; width:1000px;">

<div class="tooltip">
<button onclick="myFunction()" onmouseout="outFunc()">
  <span class="tooltiptext" id="myTooltip">Copy to clipboard</span>
  Copy Text
  </button>
</div>

```

JavaScript

```
function myFunction() {
  var copyText = document.getElementById("textBox");
  copyText.select();
  copyText.setSelectionRange(0, 99999);
  document.execCommand("copy");

  var tooltip = document.getElementById("myTooltip");
  tooltip.innerHTML = "Copied: " + copyText.value;
}

function outFunc() {
  var tooltip = document.getElementById("myTooltip");
  tooltip.innerHTML = "Copy to clipboard";
}

```