Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@12core/highlightjs-solidity
Advanced tools
highlight.js syntax definition for Ethereum's Solidity language
highlight.js
syntax definition for Solidity.
For more about highlight.js, see https://highlightjs.org/
For more about Solidity, see http://solidity.readthedocs.io/
Simply include the highlight.js
script package in your webpage or node app, load up this module and apply it to hljs
.
If you're not using a build system and just want to embed this in your webpage:
<script type="text/javascript" src="/path/to/highlight.pack.js"></script>
<script type="text/javascript" src="/path/to/highlightjs-solidity/solidity.js"></script>
<script type="text/javascript">
hljs.registerLanguage('solidity', window.hljsDefineSolidity);
hljs.initHighlightingOnLoad();
</script>
If you're using webpack / rollup / browserify / node:
var hljs = require('highlightjs');
var hljsDefineSolidity = require('highlightjs-solidity');
hljsDefineSolidity(hljs);
hljs.initHighlightingOnLoad();
This is a pretty simple package, the only thing you might want to do differently is name the language something other than solidity
. If you want to do this, simply import { definer } from 'highlightjs-solidity';
and use it like: hljs.registerLanguage('othername', definer);
.
Find me at http://pospi.spadgos.com
Tip me some ether? (; 0x52c04Bf91ebB58221A4ac65967e4CDa15a871eba
FAQs
highlight.js syntax definition for Ethereum's Solidity language
We found that @12core/highlightjs-solidity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.