SourceFormatX

Overview

Features

Why Use It

Formatting Show

Integration

Screenshots

Documentation

FAQs & Tips

Update History

Award Gallery

Testimonials

License Policy

CodeMorph

CodeToHtml

HTML Components Source Code Formatting Show


SourceFormatX code formatter bases on powerful syntax parse engines so it can format and beautify source code files with omnifarious styles, even these messy source code examples below:

C/C++ Java C# Delphi (Pascal)
PHP JSP ASP JavaScript
Visual Basic VB.NET VBScript HTML Components
80x86 ASM 8051 ASM CORBA IDL


This is an extreme (HTC) HTML Components code formatting example, the purpose of it is to show the power of HTML Components syntax parse engine powered by SourceFormatX HTC code formatting tool.

  <!-- Before HTML Components Code Formatting -->

  <PUBLIC:COMPONENT lightWeight="true">
  <PUBLIC:METHOD NAME="DoInit"/>
  <PUBLIC:METHOD NAME="activate"/>
  <SCRIPT LANGUAGE="jscript">
  var oBody=null;var sPopUp="";var bConditioned=false;var disableCondition="";
  function DoInit(){try{// oBody = getElement( this, "BODY");
  // oForm = getElement( this, "FORM");
  oEvent=createEventObject();rcID.fire(oEvent);}catch(e){alert("ERRORE "+
  e.message);window.status="Errore ["+this.id+".DoInit( )]: "+e.message+" ("+
  e.name+")";}}function setPopUp(sPopUp){if(sPopUp=="null"){sPopUp="";}
  this.sPopUp=sPopUp;oPopupID.fireChange();}function setAction(sAction){if(
  sAction=="null"){sAction="";}this.sAction=sAction;sActionID.fireChange();}
  function setHRef(sHRef){if(sHRef=="null"){sHRef="";}this.sHRef=sHRef;
  sHRefID.fireChange();}function setTarget(sTarget){if(sTarget=="null"){sTarget=
  "";}this.sTarget=sTarget;sTargetID.fireChange();}function setActiveConditioned(
  bConditioned){if(bConditioned=="null"){bConditioned=true;}this.bConditioned=
  bConditioned;bConditionedID.fireChange();}
  </SCRIPT>
  </PUBLIC:COMPONENT>


  <!-- After HTML Components Code Formatting -->

  <PUBLIC:COMPONENT lightWeight="true">
  <PUBLIC:METHOD NAME="DoInit"/>
  <PUBLIC:METHOD NAME="activate"/>
  <SCRIPT LANGUAGE="jscript">
  var oBody = null;
  var sPopUp = "";
  var bConditioned = false;
  var disableCondition = "";
  function DoInit()
  {
    try
    {
      // oBody = getElement( this, "BODY");
      // oForm = getElement( this, "FORM");
      oEvent = createEventObject();
      rcID.fire(oEvent);
    }
    catch (e)
    {
      alert("ERRORE " + e.message);
      window.status = "Errore [" + this.id + ".DoInit( )]: " + e.message + " (" +
        e.name + ")";
    }
  }

  function setPopUp(sPopUp)
  {
    if (sPopUp == "null")
    {
      sPopUp = "";
    }
    this.sPopUp = sPopUp;
    oPopupID.fireChange();
  }

  function setAction(sAction)
  {
    if (sAction == "null")
    {
      sAction = "";
    }
    this.sAction = sAction;
    sActionID.fireChange();
  }

  function setHRef(sHRef)
  {
    if (sHRef == "null")
    {
      sHRef = "";
    }
    this.sHRef = sHRef;
    sHRefID.fireChange();
  }

  function setTarget(sTarget)
  {
    if (sTarget == "null")
    {
      sTarget = "";
    }
    this.sTarget = sTarget;
    sTargetID.fireChange();
  }

  function setActiveConditioned(bConditioned)
  {
    if (bConditioned == "null")
    {
      bConditioned = true;
    }
    this.bConditioned = bConditioned;
    bConditionedID.fireChange();
  }

  </SCRIPT>
  </PUBLIC:COMPONENT>

  Formatting HTML Components code by hand?  Use SourceFormatX HTC Code Formatter to standardize the coding style of your team.