ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Base​64 Fold

by DaQuirm ST2/ST3

A Sublime Text plug-in that automatically folds base64-encoded data URIs in your CSS files

Details

  • 2017.03.02.21.37.26
  • github.​com
  • github.​com
  • 3 years ago
  • 1 hour ago
  • 7 years ago

Installs

  • Total 5K
  • Win 3K
  • OS X 2K
  • Linux 693
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4
Windows 1 2 0 0 0 1 0 0 4 0 2 1 3 0 1 0 1 1 1 0 1 0 0 0 1 0 1 0 0 0 2 0 3 0 0 0 2 0 1 1 0 0 0 2 1
OS X 0 1 0 1 0 1 0 0 4 0 1 0 1 0 0 1 0 1 0 1 0 0 0 0 0 1 0 2 0 1 2 0 1 0 1 1 0 1 1 0 0 1 1 0 1
Linux 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 1 0 0 1 0 0 1 0 2 0 0 0 0 0 0 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

Base64 Fold

Base64-encoded Data URIs are notoriously long and look ugly in text editors:

Since you never edit these embeds, they are just sitting there, wasting space and irritating you by going beyond your screen width or wrapping to many lines. This little plug-in makes use of Sublime Text folding to hide them:

Problem solved: the URI is still there, but it's neatly folded and can be unfolded for inspection.

Installation

You can install Base64 Fold through Sublime Package Control.

Don't forget about these default Sublime key shortcuts:

Fold: ctrl+shift+]

Unfold: ctrl+shift+[

Settings

By default, only Base64 code in CSS and HTML files (recognized by file extensions) will be folded. You can set it to fold in any file, or limit to specific file extensions, by adding your settings to user preferences file, which can be opened from menu Preferences > Settings - User.

For details, see Packages/Base64 Fold/Base64 Fold.sublime-settings, or the latest version here.