# ember-cli-highlightjs

> Ember-cli Syntax highlighting addon for the Web using HighlightJs

Latest version **0.0.3** (published 2020-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-highlightjs
pnpm add ember-cli-highlightjs
yarn add ember-cli-highlightjs
bun add ember-cli-highlightjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-07-24 |
| First published | 2017-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4 |
| Dependencies | 3 |
| Unpacked size | 372 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | shayan yazdanpanah |
| Maintainers | shayanypn |
| Keywords | ember-addon, ember-highlight, highlightjs, ember-cli-highlight-js, highlight-js |

## Links

- npm: https://www.npmjs.com/package/ember-cli-highlightjs
- Repository: https://github.com/shayanypn/ember-cli-highlighjs
- Homepage: https://github.com/shayanypn/ember-cli-highlighjs#readme
- Issues: https://github.com/shayanypn/ember-cli-highlighjs/issues
- npm.io page: https://npm.io/package/ember-cli-highlightjs

## Dependencies (3)

- [ember-cli-sass](https://npm.io/package/ember-cli-sass.md) ^6.2.0
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^6.0.0
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^1.1.1

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2020-07-24
- 0.0.2 — 2017-06-12
- 0.0.1 — 2017-06-12

## README

# ember-cli-highlightjs
Ember-cli Syntax highlighting addon for the Web using HighlightJs

[Demo](http://ember-cli-highlighjs.shayanypn.ir/)

## Installation
`ember install ember-cli-highlightjs`



## Usage

default

    {{#highlight-code}}
    @font-face {
      font-family: Chunkfive; src: url('Chunkfive.otf');
    }
    body, .usertext {
      color: #F0F0F0; background: #600;
      font-family: Chunkfive, sans;
    }
    @import url(print.css);
    {{/highlight-code}}
 
 Specify Theme

    {{highlight-code
      theme='agate'
      code='POST /task?id=1 HTTP/1.1
    Host: example.org
    Content-Type: application/json; charset=utf-8
    Content-Length: 137
    
    {
      "status": "ok",
      "extended": true,
      "results": [
        {"value": 0, "type": "int64"},
        {"value": 1.0e+3, "type": "decimal"}
      ]
    }'}}

Specify Code Type

    {{#highlight-code
      theme='atom-one-light'
      type='javascript'
      }}
    function $initHighlight(block, cls) {
      try {
        if (cls.search(/\bno\-highlight\b/) != -1)
          return process(block, true, 0x0F) +
                 ` class="${cls}"`;
      } catch (e) {
        /* handle exception */
      }
      for (var i = 0 / 2; i &lt; classes.length; i++) {
        if (checkCondition(classes[i]) === undefined)
          console.log('undefined');
      }
    }
    export  $initHighlight;
    {{/highlight-code}}

for checking all themes and code type please look at [HighlighJs](https://highlightjs.org)




## Contributing
If you find an issue or missing functionality, please don't hesistate to open a pull request.

### Installation
* `git clone` this repository
* `npm install`
* `bower install`

### Running
* `ember server`
* Visit your app at http://localhost:4200.

### Running Tests
* `npm test`

### Building
* `ember build`

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).

---
_Source: https://npm.io/package/ember-cli-highlightjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
