jakiestfu / Behave.js

A lightweight, cross browser library for adding IDE style behaviors to plain text areas
http://jakiestfu.github.com/Behave.js/
1.74k stars 110 forks source link

AutoIndent does not work #5

Closed gimmi closed 11 years ago

gimmi commented 11 years ago

Or at least seems so in the demo page

jakiestfu commented 11 years ago

What browser are you using, and what page specifically? The example.html or the GitHub Pages site demo? I just pushed a fix for braces and others enclosed within quotes screwing up indentation levels

gimmi commented 11 years ago

The page is http://jakiestfu.github.com/Behave.js/

I'm using Chrome Version 24.0.1312.56 m

joealcorn commented 11 years ago

Chrome Version 24.0.1312.56, working fine for me.

jakiestfu commented 11 years ago

Give an example of what you're trying to have auto-indented

gimmi commented 11 years ago

Trying this:

Capture

jakiestfu commented 11 years ago

This is for coding, not general text editing. I will see about support for this. Indentation is determined by number of brackets/braces used.

gimmi commented 11 years ago

This is a rather common use case when editing markdown bullet lists.

jakiestfu commented 11 years ago

Again, this is behaviors for coding. If you are looking for markdown behaviors, you can see the repo here: https://github.com/jamiebicknell/Markdown-Helper

gimmi commented 11 years ago

Thanks for link