Giter Club home page Giter Club logo

microlight's People

Stargazers

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

Watchers

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

microlight's Issues

Use in NodeJS?

This might be out of scope since your goal was to create something super tiny (great job by the way!), however it would be sweet if this could work server side, IE: given a string of html, output a string of html.

Feel free to close this if it is out of scope.

Use options instead hardcoded variables to customize style

Hi! Awesome library, congrats! :)

I would like to ask for a way to accept a options object in order to customize a bit the style. For example, instead text-shadow, it might accept other kind of style or a tweaked one. I think some kind of customization would be great without compromising the size of the file.

Thanks!

Support `<pre><code>` tags.

Currently microlight class needs to be included in the class list. But most syntax highlight scripts automatically work on code wrapped in <pre><code> tags.

I request same behavior with microlight.js.

Support for live highlighting in a contenteditable element

I have a usecase where I want to highlight syntax in a div that the end-user populates. Any chance we can make the rendering work 'live' in a contenteditable?

I've hacked at approaches to this before, and it inevitably becomes a complex mush of tracking the cursor on key-ups, subtracting invisible characters (spans used for syntax highlighting) etc.

Highlight selected keyword

This is really a gem , thank you for working on it

I was thinking since the main purpose of it is enhance code readability , a useful feature will be:

The reader may need to track a specific variable so selecting it in code all reoccurrence of the variable can get highlighted in a different way to make it faster for the eye to track whats happening to that variable

well I mainly wanted to thank you for the great work and then thought to just suggest this feature that came to my mind if the suggestion goes with the values and goals of this project please do add as a feature

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.