SourceFormatX

軟體簡介

主要功能

為什麼要使用

源碼美化演示

整合和插件

界面預覽

常見問題

升級歷史

所獲獎項

用戶評價

許可協議

CodeToHtml

HTML Components原始碼美化效果演示

現在購買
下載試用

程式碼美化工具功能

SourceFormatX 使用強大的HTML Components詞法解析引擎全面地分析您的原始碼並根據用戶自定義的HTC原始碼風格重構和美化HTC原始碼檔案,因此它能精細地根據不同的原始碼風格美化多種原始碼,甚至是下面這些極度混亂的原始碼:

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


這是一個 HTML Components (HTC) 原始碼美化的範例,其目的是為了展示 SourceFormatX HTC程式碼美化工具 詞法解析引擎的威力。這份極度混亂的HTML Components原始碼檔案在1秒種內即被SourceFormatX美化和縮排成整潔的版式。

  <!-- 原始碼美化之前的HTML Components原始碼 -->

  <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>

  <!-- 原始碼美化之後的HTML Components原始碼 -->

  <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>

  不要再浪費寶貴的時間手動整理美化 HTML Components / HTC 語言原始碼了! 現在就下載SourceFormatX原始碼美化工具