Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Added a live code editor based on Ace.js and rust-playpen. #26

Merged
merged 1 commit into from
Jun 4, 2014
Merged

Added a live code editor based on Ace.js and rust-playpen. #26

merged 1 commit into from
Jun 4, 2014

Conversation

SergioBenitez
Copy link
Contributor

Features include:

  1. Sample code can be edited and run in place.
  2. Results/errors are color-coded and displayed in place.
  3. Lines/text with errors are highlighted in the editor.
  4. Page falls-back to static code when JS is disabled.

This is what the editor looks like on a successful run:
success

This is what the editor looks like on an unsuccessful run:
error

…nclude:

1) Sample code can be edited and run in place.
2) Results/errors are color-coded and displayed in place.
3) Lines/text with errors are highlighted in the editor.
brson added a commit that referenced this pull request Jun 4, 2014
Added a live code editor based on Ace.js and rust-playpen.
@brson brson merged commit 677000a into rust-lang:gh-pages Jun 4, 2014
@brson
Copy link
Contributor

brson commented Jun 4, 2014

Thanks!

@@ -123,3 +151,6 @@
rec_inst_link.setAttribute("href", rec_dl_addy);

</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/ace.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/mode-rust.js"></script>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be also using https?

alexcrichton pushed a commit that referenced this pull request Oct 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants