“Highlighting Code Block”

Block 対応の Highlighter を試用。(でも AMP 非対応)

//////// START "main()" /////////////////////////////////////////////////////////////////

main();
function main(){

//// == Config Retrieving / 工程コンフィグの参照 ==
const strMasterName = configs.get( "strSetConfA" ); // required
const strDeleteOptionIds = configs.get( "strSetConfB" ); // required
const pocketNewMaster = configs.getObject( "SelectConfC1" ); // required
const pocketNewOptionIds = configs.getObject( "SelectConfC2" ); // not
const pocketNewOptionLabels = configs.getObject( "SelectConfC3" ); // not
const pocketBackupMaster = configs.getObject( "SelectConfD1" ); // not
const pocketDeletedIdLabels = configs.getObject( "SelectConfD2" ); // not

if( strMasterName === "" ){
  throw new Error( "\n AutomatedTask ConfigError:" +
                   " Config {MasterFile Name A} is empty \n" );
}
if( strDeleteOptionIds === "" ){
throw new Error( "\n AutomatedTask ConfigError:" +
" Config {OptionID B} is empty \n" );
}
let arrDeleteOptionIds = strDeleteOptionIds.split('\n');



}

“SyntaxHighlighter Evolved”

//////// START "main()" /////////////////////////////////////////////////////////////////

main();
function main(){

//// == Config Retrieving / 工程コンフィグの参照 ==
const strMasterName = configs.get( "strSetConfA" ); // required
const strDeleteOptionIds = configs.get( "strSetConfB" ); // required
const pocketNewMaster = configs.getObject( "SelectConfC1" ); // required
const pocketNewOptionIds = configs.getObject( "SelectConfC2" ); // not
const pocketNewOptionLabels = configs.getObject( "SelectConfC3" ); // not
const pocketBackupMaster = configs.getObject( "SelectConfD1" ); // not
const pocketDeletedIdLabels = configs.getObject( "SelectConfD2" ); // not

if( strMasterName === "" ){
  throw new Error( "\n AutomatedTask ConfigError:" +
                   " Config {MasterFile Name A} is empty \n" );
}
if( strDeleteOptionIds === "" ){
throw new Error( "\n AutomatedTask ConfigError:" +
" Config {OptionID B} is empty \n" );
}
let arrDeleteOptionIds = strDeleteOptionIds.split('\n');



}

ばにら

//////// START "main()" /////////////////////////////////////////////////////////////////

main();
function main(){

//// == Config Retrieving / 工程コンフィグの参照 ==
const strMasterName = configs.get( "strSetConfA" ); // required
const strDeleteOptionIds = configs.get( "strSetConfB" ); // required
const pocketNewMaster = configs.getObject( "SelectConfC1" ); // required
const pocketNewOptionIds = configs.getObject( "SelectConfC2" ); // not
const pocketNewOptionLabels = configs.getObject( "SelectConfC3" ); // not
const pocketBackupMaster = configs.getObject( "SelectConfD1" ); // not
const pocketDeletedIdLabels = configs.getObject( "SelectConfD2" ); // not

if( strMasterName === "" ){
  throw new Error( "\n AutomatedTask ConfigError:" +
                   " Config {MasterFile Name A} is empty \n" );
}
if( strDeleteOptionIds === "" ){
throw new Error( "\n AutomatedTask ConfigError:" +
" Config {OptionID B} is empty \n" );
}
let arrDeleteOptionIds = strDeleteOptionIds.split('\n');



}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top