An open API service indexing awesome lists of open source software.

https://github.com/tategakibunko/nehan-highlight

nehan plugin for code highlighting
https://github.com/tategakibunko/nehan-highlight

highlighting nehan plugin

Last synced: 3 months ago
JSON representation

nehan plugin for code highlighting

Awesome Lists containing this project

README

        

# nehan-highlight

[nehan](https://github.com/tategakibunko/nehan) plugin for code highlight.

![demo](sshot.png)

## create nehan style

```typescript
import { PagedNehanDocument, CssStyleSheet } from 'nehan';
import * as HighlightStyle from 'nehan-highlight';

const hljsStyle: CssStyleSheet = HighlightStyle.create({
selector: "pre>code"
});

const pd = new PagedNehanDocument('

const x: string = "foo"
', {
styleSheets:[
hljsStyle, // add highlight style!
]
});
```

## use markup

```html



const x: string = "foo";

```