Closed abramadams closed 9 years ago
This is a great commit, I am just commiting it to the develop branch for the moment so that I can merge it and then we will push a bunch of changes to live
I have merged this into the develop branch instead. Should see it in a few days once I get some of the gist functionality in there.
This adds the trycf.com editor/runner box to provide live code samples for tags and functions based on the .json data. Currently only abs.json (for functions) and cfdump.json (for tags) have the added "example" key that will drive the code runner.
To add a live code sample to a function/tag page just add the "example" key to the .json file associated with that tag/function (i.e. /export/4.5.1.000/json/functions/abs.json for the abs function). The available options are (with defaults):
Here's a sample from abs.json where a GistID was provided instead of an inline code sample:
And here's an example from cfdump.json where the code was provided inline: