Skip to content

JHighlight is an embeddable pure Java syntax highlighting library.

License

Notifications You must be signed in to change notification settings

codelibs/jhighlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JHighlight Java CI with Maven

Overview

JHighlight is an embeddable pure Java syntax highlighting library that supports Java, HTML, XHTML, XML and LZX languages and outputs to XHTML. It also supports RIFE templates tags and highlights them clearly so that you can easily identify the difference between your RIFE markup and the actual marked up source.

This project is forked from https://jhighlight.dev.java.net/ to fix several bugs.

Reference

The original jhighlight handles multi-byte characters as garbled one. To solve this problem, replace with CodeLibs jhighlight.

Tika

Tika uses jhighlight to parse source code files, such as .java. If a source code file has a multi-byte chracter, it becomes a garbled one. To avoid this problem, change your pom.xml to:

<dependency>
  <groupId>org.apache.tika</groupId>
  <artifactId>tika-parsers</artifactId>
  <version>1.6</version>
  <exclusions>
    <exclusion>
      <groupId>com.uwyn</groupId>
      <artifactId>jhighlight</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>
  <groupId>org.codelibs</groupId>
  <artifactId>jhighlight</artifactId>
  <version>1.0.2</version>
</dependency>

About

JHighlight is an embeddable pure Java syntax highlighting library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published