Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HiLit

A javascript plugin for prettifying and syntax highlighting contents for html code elements.

All you need is opening a code element, and writing some code in it.
If your heart desires some syntax highlighting, then add data-syntax attribute to it, like
data-syntax="csharp", along with the necessary syntax file (see hilit.syntax.csharp.js).
After everything loaded & rendered initialize a HiLit object for your code element like this:

<script type="text/javascript">
var highlighted = new HiLit("#TheCodeElement");
</script>

About

A javascript plugin for prettifying and syntax highlighting contents for html code elements.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages