examinedliving
7/13/2016 - 6:57 PM

Regexp for working with Sublime Text and Bootstrap vars.less file.

Regexp for working with Sublime Text and Bootstrap vars.less file.

RegEx for working with Bootstrap 3 Variables file in Sublime Text

    ^(?!(\/\/==.*?$))

Above matches all text that is not a section header inside of variables.less files

Replace With:

    \t\1

Voila - all lines except for section headers are now intended making folding a snap

Now all sections can be folded, so it easier to modify or transform the variables file - or preferably override the variables file with your own variables.