You can embed a slashrun within your own web-page, using the following html snippet:
<form action="http://run.slashrun.org/War" method="post"> <textarea wrap="off" name="source"> your code here... </textarea> <input type="submit" value="run" /> </form>
The following attributes can make the textarea feel like a real pro:
style="width:100%" : making the text-area as wide as possible.
rows="12" : giving the text-area a decent number of rows.
spellcheck="false" : disabling spell-check in Firefox.
You can execute a slashrun via a link, using the following pattern:
http://run.slashrun.org/War?source=http://foo.org/bar.txt
The source parameter should be the valid url of a text file containing the source code.
Drag-and-drop this link onto your desktop: the war of the words. Once the shortcut is there, it will launch an empty slashrun when activated.
From Ajax to Ruby, pick the language of your choice... The following PHP code could serve as a starting point:
$source = 'your code here...';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://run.slashrun.org/War');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'source=' . urlencode($source));
header('Content-Type: application/x-java-jnlp-file');
header('Content-Disposition: inline; filename="War.jnlp"');
curl_exec($ch);
curl_close($ch);
Give the forum a try if you have questions, feedback, bugs to report or some slashrun code to share with the world...