jetbrains.buildServer.web.util
Class SourceFormatter

java.lang.Object
  extended by jetbrains.buildServer.web.util.SourceFormatter

public class SourceFormatter
extends java.lang.Object

Source code formatting utility


Constructor Summary
SourceFormatter()
           
 
Method Summary
static com.intellij.openapi.util.Pair<java.lang.String,java.lang.Integer> formatSource(java.lang.String name, java.lang.String text, java.lang.String parentNodeId, boolean tryColorer, int startLine)
          Tries to highlight and then formats source code as HTML numbered list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFormatter

public SourceFormatter()
Method Detail

formatSource

public static com.intellij.openapi.util.Pair<java.lang.String,java.lang.Integer> formatSource(java.lang.String name,
                                                                                              java.lang.String text,
                                                                                              java.lang.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 language
text - source text
parentNodeId - list node id
tryColorer - try to highlight
startLine - list start line number
Returns:
formatted HTML