|
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:
|
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.
<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>
Formatting HTML Components code by hand? Use SourceFormatX HTC Code Formatter to standardize the coding style of your team.
|