Package org.eclipse.php.formatter.core

Source Code of org.eclipse.php.formatter.core.HtmlFormatterForPhpCode

/*******************************************************************************
* Copyright (c) 2013 Zend Techologies Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     Zend Technologies Ltd. - initial API and implementation
*******************************************************************************/
package org.eclipse.php.formatter.core;

import org.eclipse.wst.html.core.internal.format.HTMLFormatProcessorImpl;
import org.eclipse.wst.sse.core.internal.format.IStructuredFormatter;
import org.w3c.dom.Node;

/**
* @author moshe, 2007
*/
public class HtmlFormatterForPhpCode extends HTMLFormatProcessorImpl {

  @Override
  protected IStructuredFormatter getFormatter(Node node) {
    IStructuredFormatter formatter = HTMLFormatterFactoryForPhpCode
        .getInstance().createFormatter(node, getFormatPreferences());

    return formatter;
  }

}
TOP

Related Classes of org.eclipse.php.formatter.core.HtmlFormatterForPhpCode

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.