randy3k / AlignTab

An alignment plugin for Sublime Text using regular expression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can it do something like this

reejosamuel opened this issue · comments

zIt'd be sweet if your plugin would change this:

-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;

into this:

-webkit-border-radius: 50%;
   -moz-border-radius: 50%;
    -ms-border-radius: 50%;
     -o-border-radius: 50%;
        border-radius: 50%;

...And change this:

background: -webkit-linear-gradient(top, #fff, #eee);
background: -moz-linear-gradient(top, #fff, #eee);
background: -ms-linear-gradient(top, #fff, #eee);
background: -o-linear-gradient(top, #fff, #eee);
background: linear-gradient(top, #fff, #eee);

into this:

background: -webkit-linear-gradient(top, #fff, #eee);
background:    -moz-linear-gradient(top, #fff, #eee);
background:     -ms-linear-gradient(top, #fff, #eee);
background:      -o-linear-gradient(top, #fff, #eee);
background:         linear-gradient(top, #fff, #eee);

👍 I'd wanted to do something like this (align by multiple token, sorting by length, IMO, is not necessary):

// configuration
exports.TOCKEN = process.env.API_TOCKEN || 'defaultToken';
exports.HOST   =  process.env.NODE_HOST || '0.0.0.0';
exports.PORT   =  process.env.NODE_PORT || 8080;
exports.ID     =    process.env.NODE_ID || 0;

@reejosamuel
it can be done by :/r0cl and :/l0cr

@alekmych
it can be done by =|\|\|

hey :/r does the job. Thanks guys. you can close it

Uhh... that simple... I think more examples should not harm.

You can help in providing more examples here: https://github.com/randy3k/AlignTab/wiki/Examples