Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Net HTML缩进函数_Html_Vb.net_Pretty Print - Fatal编程技术网

Net HTML缩进函数

Net HTML缩进函数,html,vb.net,pretty-print,Html,Vb.net,Pretty Print,没有太多的运气“谷歌”这个,因为他们认为我想在网上做 VB.net中是否有接受字符串的内置函数 Private Function PrettyPrintHTML(byval str as string) as string 'Do Pretty Things Here Return PrettyThing End Function 乙二醇 ValueUsername: 并将在正确的位置输出缩进,即 <html> <head> <title

没有太多的运气“谷歌”这个,因为他们认为我想在网上做

VB.net中是否有接受字符串的内置函数

Private Function PrettyPrintHTML(byval str as string) as string

 'Do Pretty Things Here

  Return PrettyThing

End Function
乙二醇

ValueUsername:
并将在正确的位置输出缩进,即

<html>
  <head>
    <title>Value</title>
  </head>
  <body>
    <div>
      <label> Username: 
        <input id="username"/>
      </label>
    </div>
  </body>
</html>

价值观
用户名:

我正在尝试将格式正确的字符串输出到屏幕。

您是从编程的角度(例如,您的代码应该更改此字符串)还是从IDE的角度(例如,您希望在Visual Studio中对代码进行良好的格式设置)?代码:)我将编辑问题,因为我本可以帮助处理另一个问题。我不知道内置了什么(但这并不意味着没有什么,可能是第三方组件)。
<html>
  <head>
    <title>Value</title>
  </head>
  <body>
    <div>
      <label> Username: 
        <input id="username"/>
      </label>
    </div>
  </body>
</html>