Skip to content

A simple Javascript library to highlight Javascript, html and css files.

License

Notifications You must be signed in to change notification settings

fritzdultimate/HighlightJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HighlightJs

A simple Javascript library to highlight Javascript, html and css files.

For HighlightJS initialiation

let highlight = new Highlight(enable_list?, style?);
//style is an optional object with style rules;
//enable_list is a boolean: True to enable listing, false to disable. enabled by default.
highlight.style();

Example below

```HTML
<div class="code">
  <div class="mark-up" data-custom="data"> content </div>
</div>
\```
let highlight = new Highlight(true {
  className : {
    tag: 'class'
    }
  }
  
  attributes{//},
  styles: {//}
});
highlight.style();

About

A simple Javascript library to highlight Javascript, html and css files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published