Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
This Python package can be used to add the Molokai colour theme to Pygments. It was generated from the Vim Molokai plugin
_ using the Vim Colorscheme Converter
_. Once installed, a Pygments style named 'molokai' will become available.
.. image:: https://raw.githubusercontent.com/gbpoole/gbpoole.github.io/main/assets/screen_shots/pygments_molokai_screen_shot.png :alt: Pygments Molokai Screen Shot :align: center
.. _Vim Molokai plugin
: https://github.com/tomasr/molokai
.. _Vim Colorscheme Converter
: https://github.com/honza/vim2pygments
With Pygments installed, the Molokai style can be added as follows:
The easiest way is to use 'pip': ::
$ pip install pygments-molokai
For those who want to work from code, you can install the Molokai theme manually. First make sure that Poetry is installed (see here
). Then:
::
$ git clone git://github.com/gbpoole/pygments-molokai.git
$ cd pygments-molokai
$ poetry install
.. _here: https://python-poetry.org/docs/#installation
From Python: ::
>>> from pygments.formatters import HtmlFormatter
>>> HtmlFormatter(style='molokai').style
<class 'pygments_style_molokai.MolokaiStyle'>
or from the command line: ::
pygmentize -g -O style=molokai <FILENAME>
More information about Pygment styles can be found at the official Pygments documentation
_ page.
.. _official Pygments documentation: https://pygments.org/docs/styles/
FAQs
A Pygments style providing the Molokai colour scheme.
We found that pygments-molokai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.