String Builder

How to build string variable from plain text

  • Step 1: Go to link: String builder
  • Step 2: Enter the text in Input textarea.
  • Step 3: Click [Build] button.

Uses String Builder

  • Convert text to multiline string for programming languages like javascript.
  • Concatenate HTML, JS, JAVASCRIPT, C#, JAVA, PHP.
  • Json multiline strings.
  • Function Sample or Reset Input and Output.

Example String Builder

Input:

{"menu": {
     "id": "file",
     "value": "File",
     "popup": {
          "menuitem": [
             {"value": "New", "onclick": "CreateNewDoc()"},
             {"value": "Open", "onclick": "OpenDoc()"},
             {"value": "Close", "onclick": "CloseDoc()"}
           ]
     }
}} 

String converted would be:

' {"menu": { ' +
' "id": "file", ' +
' "value": "File", ' +
' "popup": { ' +
' "menuitem": [ ' +
' {"value": "New", "onclick": "CreateNewDoc()"}, ' +
' {"value": "Open", "onclick": "OpenDoc()"}, ' +
' {"value": "Close", "onclick": "CloseDoc()"} ' +
' ] ' +
' } ' +
' }} ' +
' ' ;

My name is John DevWeb. I’m 30 years old. I’m come from Australia. I enjoy working as a R&D team leader. I like AI Technology Research and Free Smart Tools that help everyone in the world. ILOVEFORMAT is one of the tools that I am Researching. I hope to help everyone in the world.

Follow John DevWeb on social networks

https://topformats.com/