I am currently playing around with embedded browsers like CefSharp. I am injecting javascript into these browsers and thus have some large text strings.
If you are not following me I mean like this
str = "(function dosomething() " _
+ "{ " _
+ "var title = 'Hi'; " _
+ "return title; " _
+ "})()"
With much larger string/functions making them, reading them and editing them is not easy.
I have created a .js file in visual studio which of course is great with intellisense etc.
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.
CefSharp added as a tag as people using it may have another solution to this issues.
I dont want to read the text from a whole file, just a part of it.