asvd / microlight Goto Github PK
View Code? Open in Web Editor NEWhighlights code in any programming language
Home Page: http://asvd.github.io/microlight
License: MIT License
highlights code in any programming language
Home Page: http://asvd.github.io/microlight
License: MIT License
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
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.
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!
As title, when load jquery 3, it broke, no highlight function executed I think
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
.
Weather the comments NOR the tags show up.
Is there a hidden "feature" I am missing?
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.
Im not sure how to use this library with React. Is there any example to do that?
Thank you for making this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.