Skip to content

A javascript for highlight sentence in remarks with a html file.

Notifications You must be signed in to change notification settings

junseinagao/hatsugen

Repository files navigation

Hatsugen

hatsugen is a javascript for highlight sentence in remarks with a html file.

hatsugen highlight sentence that start with [NAME]) in html.

Demo

hatsugen-demo

Live Demo

Simple Usage

Load css and js in your html file.

<link rel="stylesheet" href="https://www.unpkg.com/hatsugen@0.0.1/dist/css/default.css">
<script type="module" src="https://www.unpkg.com/hatsugen@0.0.1/dist/hatsugen.js"></script>

You can custom colorlize to custom stylesheet.

(hatsugen highlight your html through data-hatsugen-id attribute.)

[data-hatsugen-id="1"] {
  color: red;
}
[data-hatsugen-id="2"] {
  color: blue;
}

Author

junseinagao

LICENSE

MIT

About

A javascript for highlight sentence in remarks with a html file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published