Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
atom-one-pgyments
Advanced tools
A tool for generating Pygments and Chroma stylesheets using Atom's lovely One Dark and One Light Syntax themes.
NPM scripts are used to copy the LESS stylesheet files from One Dark Syntax and One Light Syntax into a temp
folder, at which point each of them are converted to vanilla CSS using the LESS compiler, and minified with clean-css before being output to the dist
directory.
Supports code snippets generated with Pygments 2.2.0 and earlier, and includes the user-select
css selection rule on the linenos
class in an effort to help prevent users from copying line numbers when selecting code snippets.
git clone
npm i
npm run build
to generate stylesheetsThe above will generate two minified stylesheets in the dist
directory, aptly named dark.css
and light.css
, for use in highlighting code.
Note: By default, generated stylesheets assume your highlighted code sits in a container with class highlight
, e.g.
<div class="highlight">
<pre>
<code>...</code>
</pre>
</div>
If you are using a different wrapper class with Pygments, the wrapper name can be changed in pygments.less
before building. Additional customizations are also possible as outlined in the file. Get creative.
Please feel free to submit an issue if spot any bugs or need help understanding how to use this tool. Enhancement requests should come in the form of a pull request demonstrating your suggested changes.
This tool was inspired by Richard Leland, Mihály Gyöngyösi and Alex Wood from their following creative works:
Copyright (C) 2017–2018 Josh Habdas jhabdas@protonmail.com
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.
FAQs
Atom One Syntax Highlighting for Pygments
The npm package atom-one-pgyments receives a total of 0 weekly downloads. As such, atom-one-pgyments popularity was classified as not popular.
We found that atom-one-pgyments demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.