title: Paste Formatted HTML into Arduino Sketch
body: <p>I'm writing a Web Server with an ESP8266 and is built with an Arduino sketch. The Web Server works fine, but for each line of HTML I need to write client.print("string")</p>
  
  <p>I built a more well formatted app outside of the Arduino sketch and I'm looking for a way to easily copy and paste HTML into the sketch when the HTML code could potentially be very long.</p>
  
  <p>Here is an example of what I would like to accomplish. </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt;This HTML written in an Arduino Sketch&lt;h1&gt;
  &lt;div&gt;
  &lt;table2 style="width:100%"&gt;
   &lt;tr&gt;
    &lt;td&gt;&lt;button class="editbtn"&gt;Preset 1&lt;/button&gt;&lt;/td&gt;
    &lt;td&gt;&lt;button class="editbtn"&gt;Preset 2&lt;/button&gt;&lt;/td&gt;
    &lt;td&gt;&lt;button class="editbtn"&gt;Preset 3&lt;/button&gt;&lt;/td&gt;
    &lt;td&gt;&lt;button class="editbtn"&gt;Preset 4&lt;/button&gt;&lt;/td&gt;
    &lt;td&gt;&lt;button class="editbtn"&gt;Preset 5&lt;/button&gt;&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/div&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I copy and paste this into an Arduino Sketch without having to use copy and paste every line? Ideally I'd like the HTML part of the sketch to look similar to the formatting above.</p>
  
  <p>I'm trying to find a way around doing what is shown below to improve any debugging I might need to later in a later and more complicated app.</p>
  
  <pre><code>client.print(&lt;!DOCTYPE html&gt;)
  client.print(&lt;html&gt;)
  client.print(&lt;body&gt;)
  client.print(&lt;h1&gt;This HTML written in an Arduino Sketch&lt;h1&gt;)
  client.print(&lt;div&gt;)
  ........etc.......
  </code></pre>
  
  <p>Any help or work around would be greatly appreciated.</p>