foundeo/cfdocs — pull request #44 by abramadams (2014-04-30 00:08:48+00:00)
Title: Initial commit: Added TryCF editor for code examples

This adds the TryCF editor/runner to doc.cfm. To add an example to a doc page, just add a struct to the data json such as:
```javascript
"example": {
"defaultEngine": "acf",
"code": "
originalArray = ['1','2','3'];
writeDump( var=originalArray, label='Array' );

convertedToList = arrayToList( originalArray );
writeDump( var=convertedToList, label='List' );
"
}
```

defaultEngine can be: `acf` for Adobe ColdFusion (version 10 at the moment) or `railo` for Railo 4.2 (versions will change as time goes on).

See doc: arraytolist for an example of the editor in use.