Link to home
Start Free TrialLog in
Avatar of LindyGeek
LindyGeekFlag for Afghanistan

asked on

Need Tool Easily Convert Text to a quote string

Does anyone know where there is a tool I can use as a development aid to do the following.  

Say I have a text or html file full of strings, I'd like to convert into a format that the Visual Studio will understand, so is there a tool out there that can take in a string like:   (raw)

<span class="style-class-main-font">
Hello

and output something like  (for the C# editor)

"<span class=\"style-class-main-font\">\n" +
"Hello";

?

Avatar of newhotta
newhotta
Flag of Egypt image

You can create a Macro in an application like Notepad ++
Avatar of LindyGeek

ASKER

I need something that can put in escape sequences like \" \\ , etc.  

I know there are online tools that do this, but I can't find them anymore.  

There are online tools where you can type text into one text box, hit 'convert', and it spits out the C# string in another text box.  

If anyone knows where these online tools are, that would be awesome!
ASKER CERTIFIED SOLUTION
Avatar of Gary Davis
Gary Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Alexandre Simões
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.