Sublime Text 3 plugin for automatically folding tags, attributes or any configurable string matching a regular expression
Plugin default settings will:
- fold
rel
,content
andtype
attributes from HTML files - fold
<script>
tags from HTML files - fold all absolute http* urls leaving the last characters (default: 20)
Instead of having long urls cluttering your view like this:
Have urls automatically folded when opening or saving files:
Or add your own tags, attributes and regular expressions to auto fold.
To change the default settings copy the
settings file
to [Sublime path]/Data/Packages/User/AutoFold.sublime-settings
and change it.
Using Package Control
for Sublime Text, simply install the
Auto Fold
package.
ctrl+shift+p
(Win, Linux) or cmd+shift+p
(OS X) > type/choose: Install Package
> type/choose: auto fold
Example 1: open any HTML file with tags containing attributes rel
, content
or src
. These attribute values will be folded.
Saving the file will also fold them.
Example 2: open any HTML, CSS or Markdown file with absolute urls. These urls will be folded on open and on save.