# tinycoder
> Browser code editor that aims to be kept as simple as possible.<br>- Short description

## Ups and downs
### Ups:
1. Very simple to use
### Downs:
1. Modern browser only; not perfect for older browsers that don't support ES5 or above
## Examples
### Changing the `config`uration
```js
tc = new tinycoder(document.getElementById("tc"))
tc.config("syntaxHighlight", false)
console.log(tc.config("syntaxHighlight")) // Output: false
```
### On special circumstances...
```js
tc = new tinycoder(document.getElementById("tc"))
tc.events.update(function(e) {
	console.log("Code is now updated!", e)
})
tc.updateCode("let it = \"go\"") // Output: Code is now updated! {code: "let it = \"go\""}
// On user edit, the "update" event will not be fired.
// Use "edit" instead.
```