Lensys is a Google Chrome extension that converts selected text into code blocks with syntax highlight. Lensys is powered by Highlight.js and supports most major programming languages. More features are in the works. Let me know if there is any thing you would like to see or if there are any bugs you come by.
You can find the changelog for Lensys here.
Thank you to these amazing people/projects for helping make this extension possible:
Alexander Berejnov |
Highlight.js |
- Berejnov fixed a major issue with the compatibility of Lensys with some sites, making it work on practically any website.
- Highlight.js powers Lensys' syntax highlight feature.
Currently, this extension is not available on the Chrome store. So follow these steps to install it:
- Download the latest release.
- Open up Google Chrome and click on the extensions icon.
- Click on
Manage extensions
. - On the top right corner, activate
Developer mode
if it's not already activated. - On the top left corner, click on
Load unpacked
. - Navigate to the Lensys folder and click
Select Folder
.
Done. Now, you should be ready to use Lensys.
Warning: this extension is not available on the Chrome Web Store yet. Also, make sure Lensys is not active on all sites if it makes your websites load slower. You can do that by setting
This can read and change site data
toWhen you click the extension
.
- Select a piece of unformatted code.
- Click on the Lensys icon.
- Click on the
Lensys.syntaxHighlight(my_code);
button.
Done. The code should now be formatted into a beautiful code block with syntax highlighting for the lanugage used.