Package jetbrains.buildServer.web.util
Class SourceFormatter
- java.lang.Object
-
- jetbrains.buildServer.web.util.SourceFormatter
-
public class SourceFormatter extends Object
Source code formatting utility
-
-
Constructor Summary
Constructors Constructor Description SourceFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pair<String,Integer>
formatSource(String name, String text, String parentNodeId, boolean tryColorer, int startLine)
Tries to highlight and then formats source code as HTML numbered list
-
-
-
Method Detail
-
formatSource
public static Pair<String,Integer> formatSource(String name, String text, String parentNodeId, boolean tryColorer, int startLine)
Tries to highlight and then formats source code as HTML numbered list- Parameters:
name
- source file name to help deduce languagetext
- source textparentNodeId
- list node idtryColorer
- try to highlightstartLine
- list start line number- Returns:
- formatted HTML
-
-