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
- Host: GitHub
- URL: https://github.com/tategakibunko/nehan-highlight
- Owner: tategakibunko
- License: mit
- Created: 2021-03-13T08:41:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-04T22:27:33.000Z (almost 4 years ago)
- Last Synced: 2025-02-12T09:24:09.267Z (3 months ago)
- Topics: highlighting, nehan, plugin
- Language: TypeScript
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nehan-highlight
[nehan](https://github.com/tategakibunko/nehan) plugin for code highlight.

## 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";
```