FormatForeLines

Syntax

FormatForeLinesResult FormatForeLines(FormatForeLinesArg tArg)

Parameters

tArg. Operation execution parameters.

Description

The FormatForeLines operation formats code lines.

Comments

The operation enables the user to format code lines by adding single indents and deleting insignificant spaces in code elements. To execute the operation, in the tArg.lines field specify code lines, which should be formatted.

The operation results in the formatted code lines.

Example

Below is the example of applying formatting to code lines in the development environment. The request contains code lines. The response contains code lines after formatting is applied to them.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FormatForeLines xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
  <lines>Class test:object Function test:integer; Begin End Function test;End Class test ;</lines>
  </tArg>
  </FormatForeLines>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<FormatForeLinesResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <lines xmlns="">Class test: object Function test: integer; Begin End Function test; End Class test;</lines>
  </FormatForeLinesResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"FormatForeLines" :
{
"tArg" :
{
"lines" : "Class test:object\tFunction test:integer;\tBegin\t\t\tEnd Function test;End Class test ;"
}
}
}

JSON response:

{
"FormatForeLinesResult" :
{
"lines" : "Class test: object Function test: integer; Begin End Function test; End Class test;"
}
}
public static FormatForeLinesResult FormatForeLines(string code)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tFormat = new FormatForeLines()
{
tArg = new FormatForeLinesArg()
{
lines = code
}
};
// Format code lines
var result = somClient.FormatForeLines(tFormat);
return result;
}

See also:

Working with Development Environment