Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dotnetcarpenter/small-ide

A small browser based IDE
https://github.com/dotnetcarpenter/small-ide

Last synced: 4 days ago
JSON representation

A small browser based IDE

Awesome Lists containing this project

README

        

small-ide
=========

A small browser based IDE for web development, featuring a canvas element, a console (with [sticky scroll](http://stackoverflow.com/questions/18614301/keep-overflow-div-scrolled-to-bottom-unless-user-scrolls-up/21067431#21067431)) and an editor.

**Developed for**
Firefox 26, Chrome 31 and Internet Explorer 11

I recommend using [Hacker's Keyboard](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) on Android.

[DEMO](http://dotnetcarpenter.github.io/small-ide/) -
[TEST](http://dotnetcarpenter.github.io/small-ide/test/test.html) -
[HISTORY](HISTORY.md) -
[UNLICENSE](UNLICENSE)

## Supported API

`log` - write variables to the console

`canvas` - the canvas element

`draw` - the 2d context for the canvas

`config` - just write `log(config)` in the editor and run the code (`shift` + `enter`)

## Shortcuts

`shift` + `enter` - run code

`shift` + `backspace` - clear console

**Indentations**:

Without a selection

`tab` - insert two, or as configured, spaces (e.g. `config.indentation = 4`)

`shift` + `tab` - delete two, or as configured, spaces to the left. Aborts if it means deletetion of text

With a selection:

`tab` - indentation of selected line(s)

`shift` + `tab` - reverse indentation of selected line(s)

## Development

You can either `git clone https://github.com/dotnetCarpenter/small-ide.git && cd small-ide && bower i` or `bower i small-ide` and then `cd bower_components/small-ide && bower i`, to get the development depedencies.
If you want to use a newer version of [happen](https://github.com/tmcw/happen) and/or [jasmine](http://jasmine.github.io/2.0/introduction.html) than already in the test folder, you need to copy *happen.js* from *bower_components/happen* into *test/lib*. And unzip _jasmine-standalone-2.*.zip_ from *bower_components/jasmine/dist* into *test/lib*.