
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ember-code-block
Advanced tools
Simple, effective, and customizable code highlighting for Ember using highlight.js
let code = `
<html>
<body>
<ul></ul>
</body>
</html>`
{{code-block code language="html"}}
ember install ember-code-block
Highlight.js comes with over 160 language packs, but in practice you'll probably only want to use a handfull. By default this addon won't include any languages in the build to keep it small, instead you must register a language by configuring this addon in your app's environment:
ENV['ember-code-block'] = {
languages: ['json', 'handlebars', 'javascript'],
}
You will probably want to also configure the style
(a.k.a theme):
ENV['ember-code-block'] = {
style: 'tomorrow-night-eighties',
}
Due to the way the CSS works, you can only load one theme at a time, so you need
to configure this on load. This is a limitation of highlight.js
.
ember serve
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.
FAQs
Simple, effective, and customizable code highlighting for Ember
The npm package ember-code-block receives a total of 16 weekly downloads. As such, ember-code-block popularity was classified as not popular.
We found that ember-code-block 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.