com.aptana.ide.editor.html.formatting
Class HTMLCodeFormatter

java.lang.Object
  extended by com.aptana.ide.editors.unified.BaseFormatter
      extended by com.aptana.ide.editor.html.formatting.HTMLCodeFormatter
All Implemented Interfaces:
ICodeFormatter

public class HTMLCodeFormatter
extends BaseFormatter

Author:
Pavel Petrochenko

Constructor Summary
HTMLCodeFormatter()
           
 
Method Summary
 java.lang.String createNestedMark()
           
 java.lang.String format(java.lang.String notFormatted, boolean isSelection, java.util.Map options, org.eclipse.core.resources.IProject project, java.lang.String linedelimeters)
           
 java.lang.String getCurrentIndentationString(java.lang.String string)
           
 boolean handlesNested()
           
 
Methods inherited from class com.aptana.ide.editors.unified.BaseFormatter
getEndLineBreaks, getStartLineBreaks, isFormattingCorrect, isLexemeOfType, logError, normalizeCarriageReturns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLCodeFormatter

public HTMLCodeFormatter()
Method Detail

getCurrentIndentationString

public java.lang.String getCurrentIndentationString(java.lang.String string)
Parameters:
string -
Returns:
indentation string as it is on previous line;

format

public java.lang.String format(java.lang.String notFormatted,
                               boolean isSelection,
                               java.util.Map options,
                               org.eclipse.core.resources.IProject project,
                               java.lang.String linedelimeters)
isSelection - TODO
options - TODO
project - TODO
linedelimeters - TODO
Returns:
formatted code
See Also:
ICodeFormatter.format(java.lang.String, boolean, java.util.Map, org.eclipse.core.resources.IProject, java.lang.String)

handlesNested

public boolean handlesNested()
Returns:
true if nested languages are handled by formatter itself
See Also:
ICodeFormatter.handlesNested()

createNestedMark

public java.lang.String createNestedMark()
Returns:
mark for a nested language content
See Also:
ICodeFormatter.createNestedMark()