Giter VIP home page Giter VIP logo

base64-fold's People

Contributors

daquirm avatar keith-hall avatar ladios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ladios forkeith

base64-fold's Issues

Inline js script

Not folding in inline js config for CreateJS:

2016-08-23_14-29-26

Even when "base64fold_any_file": true

Feature request: fold data:image/svg+xml

See here. This is a useful technique that allows to include SVG code in CSS file. Usually looks like

list-style-image: url('data:image/svg+xml;utf8,<svg width="11px" height="11px" xmlns="http://www.w3.org/2000/svg"><path d="M6.56713392,6.3167819 ... Z" fill="red" stroke="black" stroke-width="1"></path></svg>'); 

Inline HTML image data is not folded when "base64fold_all_uris": true

When "base64fold_all_uris": true is set in the Preferences (which is the default), inline "img src" base64 data isn't folded automatically on save or load.

Example:

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

Verbal regular expressions

Maybe it would be better to rewrite base64 encoding-matching regex with verbal expressions - a Python port should exist.

Change key-bindings

Hello,
This is a great plugin, but I'm using AZERTY keyboard, [ and ] are unreachable on mac ;)
How to change the key-binds ?

Thanks.

Base64 code folded only on save, not on open?

It's not a major issue, but when I open a file containing some base64 code (for example, a CSS file) it is unfolded, and to have it folded you have to make a save. Is it so for a reason or it's a bug?

Multiline base64 data is not folded correctly

Data URIs encoded in Base64 may contain whitespace for human readability.

(From https://en.wikipedia.org/wiki/Data_URI_scheme#Syntax)

Example:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
    AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
    9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

    <style type="text/css">
    span {
        padding-left: 20px;
        background:white  url('data:image/png;base64,iVBORw0KGgoAA\
            AANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD///+l2Z/dAAAAM0l\
            EQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4Ug9C9zwz3gVLMDA/A6\
            P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC') no-repeat scroll left top;
    }
    /* Backslashes at end of line - to continue character string
         at new line. */
    </style>
    <span>Test</span>
</body>
</html>

Currently the img only gets the first line (iVBORw0KGgoAAAANSUhEUgAAAAUA) folded (with base64fold_all_uris set to false), leaving the other lines unfolded. The uri(' in the CSS doesn't get folded at all.

CC @Kristinita re: sublimehq/sublime_text#513 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.