title: Is there a way/extension for Visual Studio to convert javascript functions to a string?
body: <p>I am currently playing around with embedded browsers like CefSharp. I am injecting javascript into these browsers and thus have some large text strings. </p>
  
  <p>If you are not following me I mean like this</p>
  
  <pre><code>str = "(function dosomething() " _
    + "{ " _
      + "var title = 'Hi'; " _
       + "return title; " _
    + "})()"
  </code></pre>
  
  <p>With much larger string/functions making them, reading them and editing them is not easy.</p>
  
  <p>I have created a .js file in visual studio which of course is great with intellisense etc. </p>
  
  <p>So I am wondering if I could somehow use the functions I write in the .js file by turning them into a string or turn them into resrouces or something. I really dont know the correct terminology and thus what I should search with Google for.</p>
  
  <p>CefSharp added as a tag as people using it may have another solution to this issues.</p>
  
  <p>I dont want to read the text from a whole file, just a part of it.</p>