Enabling Textmate-style auto-indentation
Posted: 28 February 2009 11:39 PM   [ Ignore ]
Moderator
RankRankRankRank
Total Posts:  816
Joined  2008-10-28

Hey folks who know a heckuva lot more about Syntax Sugars than I,

Is it possible through the Sugar XML syntax definitions to enable Textmate-style intelligent auto-indentation?  For instance, I type this (pipe is cursor):

<div>|</div

Hit enter and get this:

<div>
    |
</
div

I’m hoping it is possible to do in the syntax definition; if not, I’ll add a workaround action to my sugar.

 Signature 

Ian Beck
Part-time MacRabbit Support

My stuff:
TEA (docs / source) .:. Spice.sugar .:. HTMLBundle.sugar .:. Quiet Light & Earthworm

Profile
 
 
Posted: 02 March 2009 07:56 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  15
Joined  2009-02-25

+1 for this.

TextMate user here, I rely on this constantly! :)

If there was a way to convert TextMate bundles… :)

Support for Javascript as well would be great!

Profile
 
 
   
 
 
‹‹ Specify hotkeys?      TEA for Espresso, 1.0 ››