|
HTML Components原始碼美化效果演示 |
|
|
|
|
|
SourceFormatX 使用強大的HTML Components詞法解析引擎全面地分析您的原始碼並根據用戶自定義的HTC原始碼風格重構和美化HTC原始碼檔案,因此它能精細地根據不同的原始碼風格美化多種原始碼,甚至是下面這些極度混亂的原始碼:
|
這是一個 HTML Components (HTC) 原始碼美化的範例,其目的是為了展示 SourceFormatX HTC程式碼美化工具 詞法解析引擎的威力。這份極度混亂的HTML Components原始碼檔案在1秒種內即被SourceFormatX美化和縮排成整潔的版式。
<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{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>
<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
{
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原始碼美化工具!
|