https://github.com/mhs-firstrobotics/code-editor
A simple JS-based editor for Java
https://github.com/mhs-firstrobotics/code-editor
Last synced: 4 months ago
JSON representation
A simple JS-based editor for Java
- Host: GitHub
- URL: https://github.com/mhs-firstrobotics/code-editor
- Owner: MHS-FIRSTrobotics
- License: mit
- Created: 2016-03-04T01:44:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-03T03:47:52.000Z (about 10 years ago)
- Last Synced: 2025-02-23T20:41:51.907Z (over 1 year ago)
- Language: JavaScript
- Size: 427 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Mustang Robotics Code Editor
Just need something in a pinch, or have an URL with Java code you want to play with? This may be perfect for your needs.
Nothing is stored on the servers (besides the code to load this), instead your code is fetched from remote resources like GitHub,
and such, or is encoded directly in the URL of the page you are visiting (warning: the URLs get long quickly!).
## URL Parameter tags:
- **c** this is your Base-64 encoded JSON'ed code, don't change the automatically generated code without the proper tools
- **url** this is the URL for the code you want to see, served from a GET request to the URL (this is ignored if c is specified)
- **gh** work with a file directly on GitHub, this follows the standard format ```username/repoName```. The branch can then
be appended to the repo name with a ```!``` (example: ```ftctechnh/ftc_app!beta```). The file you want can then be specifed
by a ```>``` after all other parts (excluding the file path). This would look something like ```ftctechnh/ftc_app>build.gradle```
- **br** the Git branch of the GitHub repo, requires **gh**. Defaults to ```master``` if not otherwise specified
- **gp** the path to the file you want in the repo, defaults to ```README.md```
## Usage:
Use like any other code editor, except keep in mind that Ctrl-M (Command-M on Mac) creates the URL for your own purposes.
Feel free to play with this code, or visit https://mustangrobotics.club/editor.html for an example!