-
Notifications
You must be signed in to change notification settings - Fork 143
RCloud Language extensions
Gordon Woodhull edited this page Feb 3, 2015
·
2 revisions
Language extensions should define a function rcloud.language.support which returns a list of
-
language- the name of the language. Currently should be one of the languages defined by GitHub Gists -
ace.mode- ace.js module of the mode for editing code -
hljs.class- class for highlight.js syntax highlighting -
extension- file extension -
run.cell(command, silent, rcloud.session)- function to execute the code, which should useself.oobSendto send output to the client. -
complete- function to produce code completions -
setup,teardown- optional initialization/destruction
See the R module https://github.com/att/rcloud/blob/develop/rcloud.packages/rcloud.r/R/main.R
or Python module https://github.com/att/rcloud/blob/develop/rcloud.packages/rcloud.python/R/main.R
for examples.